Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Aug 22, 2016
1 parent 972e62d commit c2979bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/src/rules/no-nodejs-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,12 @@ ruleTester.run('no-nodejs-modules', rule, {
code: 'var fs = require("fs")',
errors: [error('Do not import Node.js builtin module "fs"')],
}),
test({
code: 'import fs from "fs"',
options: [{
allow: ['path'],
}],
errors: [error('Do not import Node.js builtin module "fs"')],
}),
],
})

0 comments on commit c2979bb

Please sign in to comment.