This repository was archived by the owner on Dec 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments