diff --git a/tests/src/rules/no-duplicates.js b/tests/src/rules/no-duplicates.js index 322da1028f..1185b37f72 100644 --- a/tests/src/rules/no-duplicates.js +++ b/tests/src/rules/no-duplicates.js @@ -302,32 +302,30 @@ ruleTester.run('no-duplicates', rule, { test({ code: ` - import {x} from './foo' - import {y} from './foo' - // some-tool-disable-next-line +import {x} from './foo' +import {y} from './foo' +// some-tool-disable-next-line `, // Not autofix bail. output: ` - import {x,y} from './foo' - - // some-tool-disable-next-line +import {x,y} from './foo' +// some-tool-disable-next-line `, errors: ['\'./foo\' imported multiple times.', '\'./foo\' imported multiple times.'], }), test({ code: ` - import {x} from './foo' - // comment +import {x} from './foo' +// comment - import {y} from './foo' +import {y} from './foo' `, // Not autofix bail. output: ` - import {x,y} from './foo' - // comment +import {x,y} from './foo' +// comment - `, errors: ['\'./foo\' imported multiple times.', '\'./foo\' imported multiple times.'], }),