This repository was archived by the owner on Dec 29, 2020. It is now read-only.
File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 14
14
},
15
15
"dependencies" : {
16
16
"hooker" : " ~0.2.3" ,
17
- "jscs" : " ~2.11.0 " ,
17
+ "jscs" : " ~3.0.4 " ,
18
18
"lodash" : " ~4.6.1" ,
19
19
"vow" : " ~0.4.1"
20
20
},
Original file line number Diff line number Diff line change @@ -286,7 +286,11 @@ module.exports = {
286
286
jscs . execute ( "test/fixtures/fixture.js" ) . then ( function ( errorsCollection ) {
287
287
errorsCollection . forEach ( function ( errors ) {
288
288
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
+ ) ;
290
294
} ) ;
291
295
test . done ( ) ;
292
296
} ) ;
@@ -321,7 +325,7 @@ module.exports = {
321
325
errorsCollection . forEach ( function ( errors ) {
322
326
test . equal (
323
327
errors . getErrorList ( ) [ 0 ] . message ,
324
- "Unexpected end of input " ,
328
+ "Unexpected token (3:13) " ,
325
329
"should return correct syntax error"
326
330
) ;
327
331
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ module.exports.prototype = {
10
10
} ,
11
11
12
12
check : function ( file , errors ) {
13
- errors . add ( "test" , { line : 1 , column : 1 } ) ;
13
+ errors . add ( "test" , file . getProgram ( ) ) ;
14
14
}
15
15
} ;
You can’t perform that action at this time.
0 commit comments