Skip to content

Commit

Permalink
test: 馃拲 Added test case for checking no-var-require
Browse files Browse the repository at this point in the history
Adding a missing test case after handling new edge case

Closes: typescript-eslint#665
  • Loading branch information
JayaKrishnaNamburu committed Jul 24, 2019
1 parent 8df30ae commit e2ad8ac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/eslint-plugin/tests/rules/no-var-requires.test.ts
Expand Up @@ -38,5 +38,15 @@ ruleTester.run('no-var-requires', rule, {
},
],
},
{
code: "let foo = trick(require('foo'))",
errors: [
{
messageId: 'noVarReqs',
line: 1,
column: 17,
},
],
},
],
});

0 comments on commit e2ad8ac

Please sign in to comment.