forked from codecombat/codecombat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix for JS semicolon detection (codecombat#5101)
- Loading branch information
1 parent
bb8eeca
commit 3302c3c
Showing
12 changed files
with
42 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Aether = require '../aether' | ||
|
||
describe "Linting Test Suite", -> | ||
describe "Default linting", -> | ||
aether = new Aether() | ||
it "Should warn about missing semicolons", -> | ||
code = "var bandersnatch = 'frumious'" | ||
warnings = aether.lint(code).warnings | ||
expect(warnings.length).toEqual 1 | ||
expect(warnings?[0].message).toEqual 'Missing semicolon.' | ||
|
||
describe "Custom lint levels", -> | ||
it "Should allow ignoring of warnings", -> | ||
options = problems: {jshint_W033: {level: 'ignore'}} | ||
aether = new Aether options | ||
code = "var bandersnatch = 'frumious'" | ||
warnings = aether.lint(code).warnings | ||
expect(warnings.length).toEqual 0 |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters