File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -1099,8 +1099,14 @@ describe('utils', () => {
1099
1099
loc : false ,
1100
1100
range : false ,
1101
1101
} ) . body [ 0 ] . expression ;
1102
- const parsedArgs = node . arguments
1103
- const context = { sourceCode : { getScope ( ) { return { } } } } ; // mock object
1102
+ const parsedArgs = node . arguments ;
1103
+ const context = {
1104
+ sourceCode : {
1105
+ getScope ( ) {
1106
+ return { } ;
1107
+ } ,
1108
+ } ,
1109
+ } ; // mock object
1104
1110
const reportInfo = utils . getReportInfo ( node , context ) ;
1105
1111
1106
1112
assert . deepEqual ( reportInfo , CASES . get ( args ) ( parsedArgs ) ) ;
@@ -1273,7 +1279,13 @@ describe('utils', () => {
1273
1279
ecmaVersion : 6 ,
1274
1280
range : true ,
1275
1281
} ) ;
1276
- const context = { sourceCode : { getScope ( ) { return { } } } } ; // mock object
1282
+ const context = {
1283
+ sourceCode : {
1284
+ getScope ( ) {
1285
+ return { } ;
1286
+ } ,
1287
+ } ,
1288
+ } ; // mock object
1277
1289
const reportNode = ast . body [ 0 ] . expression ;
1278
1290
const reportInfo = utils . getReportInfo ( reportNode , context ) ;
1279
1291
const data = utils . collectReportViolationAndSuggestionData ( reportInfo ) ;
You can’t perform that action at this time.
0 commit comments