Skip to content

Commit

Permalink
initial (failing) tests for #88
Browse files Browse the repository at this point in the history
  • Loading branch information
benmosher committed Nov 8, 2015
1 parent 42db7e5 commit f8b557e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/rules/no-require.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ ruleTester.run('no-require', rule, {
, test({ code: "var bar = proxyquire('./bar');" })
, test({ code: "var bar = require('./ba' + 'r');" })
, test({ code: 'var zero = require(0);' })

, test({ code: 'function () { var bar = require("./bar"); }' })
, test({ code: 'var bar = require("./bar")'
, settings: { 'import/ignore': ['bar'] } })
],

invalid:
Expand Down

0 comments on commit f8b557e

Please sign in to comment.