From 66548a9c2d409ba62a83f1e5446913790b706367 Mon Sep 17 00:00:00 2001 From: TheCrueltySage Date: Thu, 12 Mar 2020 17:55:38 +0700 Subject: [PATCH] Add a test for disable-absolute-first option --- tests/src/rules/first.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/src/rules/first.js b/tests/src/rules/first.js index 55367cf43c..eddf64e0c1 100644 --- a/tests/src/rules/first.js +++ b/tests/src/rules/first.js @@ -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';" }) ,