Skip to content
This repository was archived by the owner on Dec 29, 2020. It is now read-only.

Commit 4f2cbe2

Browse files
committed
Bump jscs to 3.0.4
Fixes #122 Fixes gh-121
1 parent 33894a5 commit 4f2cbe2

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"dependencies": {
1616
"hooker": "~0.2.3",
17-
"jscs": "~2.11.0",
17+
"jscs": "~3.0.4",
1818
"lodash": "~4.6.1",
1919
"vow": "~0.4.1"
2020
},

Diff for: test/methods.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,11 @@ module.exports = {
286286
jscs.execute( "test/fixtures/fixture.js" ).then(function( errorsCollection ) {
287287
errorsCollection.forEach(function( errors ) {
288288
errors.getErrorList().forEach(function( error ) {
289-
test.equal( error.message, "test", "should add additional rule" );
289+
test.equal(
290+
error.message,
291+
"testAdditionalRules: test",
292+
"should add additional rule"
293+
);
290294
});
291295
test.done();
292296
});
@@ -321,7 +325,7 @@ module.exports = {
321325
errorsCollection.forEach(function( errors ) {
322326
test.equal(
323327
errors.getErrorList()[ 0 ].message,
324-
"Unexpected end of input",
328+
"Unexpected token (3:13)",
325329
"should return correct syntax error"
326330
);
327331

Diff for: test/rules/rule.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ module.exports.prototype = {
1010
},
1111

1212
check: function(file, errors) {
13-
errors.add( "test", { line: 1, column: 1 } );
13+
errors.add( "test", file.getProgram() );
1414
}
1515
};

0 commit comments

Comments
 (0)