workspacePrefs.setConfig( "{\n// \"a\": 1,\n\"b\": 2 /*, \"c\": 3*/}" );
JsonObject configuration = new ConfigLoader( project ).getConfiguration();
assertEquals( new JsonObject().add( "b", 2 ), configuration );
assertEquals( Arrays.asList( "b" ), configuration.names() );
}
private void createProjectConfig( JsonObject projectConfig ) {
TestUtil.createFile( project, ".jshintrc", projectConfig.toString() );
}