Skip to content

Commit

Permalink
Remove default "lax whitespace" option in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
happygiraffe committed Aug 1, 2011
1 parent f94c43c commit c9f9eb9
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -47,7 +47,6 @@ public void setUp() throws IOException {
lint = new JSLintBuilder().fromDefault();
// Turn off a few options. These used to be the default.
lint.addOption(Option.SLOPPY);
lint.addOption(Option.WHITE);
}

@Test
Expand All @@ -72,7 +71,7 @@ public void testAccurateLineNumbers() {
@Test
public void testDataFunctions() throws Exception {
lint.addOption(Option.UNDEF);
JSLintResult result = lint("var z = 5; function foo(x) {var y = x+z;alert(y);return y;}");
JSLintResult result = lint("var z = 5; function foo(x) {var y = x + z; alert(y); return y; }");
assertIssues(result.getIssues());
List<JSFunction> functions = result.getFunctions();
assertThat(functions.size(), is(1));
Expand Down Expand Up @@ -111,7 +110,7 @@ public void testDataJsonness() throws Exception {
@Test
public void testDataMembers() throws Exception {
// issue 42: beware numeric keys…
JSLintResult result = lint("var obj = {\"a\":1, \"b\": 42, 3: \"c\"};");
JSLintResult result = lint("var obj = {\"a\": 1, \"b\": 42, 3: \"c\"};");
assertIssues(result.getIssues());
Map<String, Integer> members = result.getMember();
assertThat(members.size(), is(3));
Expand Down

0 comments on commit c9f9eb9

Please sign in to comment.