Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Commit

Permalink
Adds another test to the laxcomma fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker committed Jan 9, 2012
1 parent 67749e1 commit 24d1084
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/fixtures/laxcomma.js
Expand Up @@ -10,3 +10,8 @@ function func() {
&& z;
}

function test() {
return someLongStatement === someOtherLongStatement
? this.someNonTrivialLengthThing(someVar, someOtherVar)
: this.someOtherNonTrivialLengthThing(someVar, someOtherVar);
}
1 change: 1 addition & 0 deletions tests/unit/options.js
Expand Up @@ -1029,6 +1029,7 @@ exports.laxcomma = function () {
.addError(2, "Bad line breaking before ','.")
.addError(6, "Bad line breaking before ','.")
.addError(10, "Bad line breaking before '&&'.")
.addError(15, "Bad line breaking before '?'.")
.test(src);

TestRun()
Expand Down

0 comments on commit 24d1084

Please sign in to comment.