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

Commit

Permalink
Bump jscs to 3.0.4
Browse files Browse the repository at this point in the history
Fixes #122
Fixes gh-121
  • Loading branch information
markelog committed Jun 4, 2016
1 parent 33894a5 commit 4f2cbe2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"hooker": "~0.2.3",
"jscs": "~2.11.0",
"jscs": "~3.0.4",
"lodash": "~4.6.1",
"vow": "~0.4.1"
},
Expand Down
8 changes: 6 additions & 2 deletions test/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ module.exports = {
jscs.execute( "test/fixtures/fixture.js" ).then(function( errorsCollection ) {
errorsCollection.forEach(function( errors ) {
errors.getErrorList().forEach(function( error ) {
test.equal( error.message, "test", "should add additional rule" );
test.equal(
error.message,
"testAdditionalRules: test",
"should add additional rule"
);
});
test.done();
});
Expand Down Expand Up @@ -321,7 +325,7 @@ module.exports = {
errorsCollection.forEach(function( errors ) {
test.equal(
errors.getErrorList()[ 0 ].message,
"Unexpected end of input",
"Unexpected token (3:13)",
"should return correct syntax error"
);

Expand Down
2 changes: 1 addition & 1 deletion test/rules/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ module.exports.prototype = {
},

check: function(file, errors) {
errors.add( "test", { line: 1, column: 1 } );
errors.add( "test", file.getProgram() );
}
};

0 comments on commit 4f2cbe2

Please sign in to comment.