Skip to content

Commit 6512110

Browse files
committed
fix tests for node 4 + fixed lint issues
1 parent bb9ba24 commit 6512110

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

tests/src/rules/no-deprecated.js

+9-11
Original file line numberDiff line numberDiff line change
@@ -224,21 +224,19 @@ describe('Typescript', function () {
224224

225225
ruleTester.run(parser, rule, {
226226
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)),
231230
],
232231
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())',
235234
errors: [
236235
{ 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+
],
242240
})
243241
})
244242
})

0 commit comments

Comments
 (0)