Skip to content

Commit

Permalink
Add a test for disable-absolute-first option
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCrueltySage committed Mar 12, 2020
1 parent 94e0c4b commit 66548a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/src/rules/first.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ ruleTester.run('first', rule, {
export { x, y }" })
, test({ code: "import { x } from 'foo'; import { y } from './bar'" })
, test({ code: "import { x } from './foo'; import { y } from 'bar'" })
, test({ code: "import { x } from './foo'; import { y } from 'bar'"
, options: ['disable-absolute-first']
})
, test({ code: "'use directive';\
import { x } from 'foo';" })
,
Expand Down

0 comments on commit 66548a9

Please sign in to comment.