From 72974225b2dd53ecba24a12ca354a391ca6fbd51 Mon Sep 17 00:00:00 2001 From: Mateusz Derks Date: Sun, 16 May 2021 13:01:50 +0200 Subject: [PATCH] fixup! [Fix] `no-duplicates`: ensure autofix avoids excessive newlines --- tests/src/rules/no-duplicates.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) 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.'], }),