Skip to content

Commit

Permalink
fix tests for node 4 + fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
benmosher committed Jul 2, 2019
1 parent bb9ba24 commit 6512110
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions tests/src/rules/no-deprecated.js
Expand Up @@ -224,21 +224,19 @@ describe('Typescript', function () {

ruleTester.run(parser, rule, {
valid: [
test({
code: "import * as hasDeprecated from './ts-deprecated.ts'",
...parserConfig,
})
test(Object.assign({
code: 'import * as hasDeprecated from \'./ts-deprecated.ts\'',
}, parserConfig)),
],
invalid: [
test({
code: "import { foo } from './ts-deprecated.ts'; console.log(foo())",
test(Object.assign({
code: 'import { foo } from \'./ts-deprecated.ts\'; console.log(foo())',
errors: [
{ type: 'ImportSpecifier', message: 'Deprecated: don\'t use this!' },
{ type: "Identifier", message: "Deprecated: don\'t use this!" }
],
...parserConfig,
})
]
{ type: 'Identifier', message: 'Deprecated: don\'t use this!' },
]},
parserConfig)),
],
})
})
})

0 comments on commit 6512110

Please sign in to comment.