File tree 1 file changed +9
-11
lines changed
1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -224,21 +224,19 @@ describe('Typescript', function () {
224
224
225
225
ruleTester . run ( parser , rule , {
226
226
valid : [
227
- test ( {
228
- code : "import * as hasDeprecated from './ts-deprecated.ts'" ,
229
- ...parserConfig ,
230
- } )
227
+ test ( Object . assign ( {
228
+ code : 'import * as hasDeprecated from \'./ts-deprecated.ts\'' ,
229
+ } , parserConfig ) ) ,
231
230
] ,
232
231
invalid : [
233
- test ( {
234
- code : " import { foo } from './ts-deprecated.ts'; console.log(foo())" ,
232
+ test ( Object . assign ( {
233
+ code : ' import { foo } from \ './ts-deprecated.ts\ '; console.log(foo())' ,
235
234
errors : [
236
235
{ type : 'ImportSpecifier' , message : 'Deprecated: don\'t use this!' } ,
237
- { type : "Identifier" , message : "Deprecated: don\'t use this!" }
238
- ] ,
239
- ...parserConfig ,
240
- } )
241
- ]
236
+ { type : 'Identifier' , message : 'Deprecated: don\'t use this!' } ,
237
+ ] } ,
238
+ parserConfig ) ) ,
239
+ ] ,
242
240
} )
243
241
} )
244
242
} )
You can’t perform that action at this time.
0 commit comments