From 0985043ad2364192d5bfd5437752ae08c6d1b834 Mon Sep 17 00:00:00 2001 From: Justin Bay Date: Sat, 13 Nov 2021 17:23:45 -0500 Subject: [PATCH] fix: autofix before/after separation marker alignment in snapshots --- src/ruleSnapshotTester.ts | 2 +- src/tests/__snapshots__/autofix.test.ts.snap | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ruleSnapshotTester.ts b/src/ruleSnapshotTester.ts index c2b7033..c2e34cb 100644 --- a/src/ruleSnapshotTester.ts +++ b/src/ruleSnapshotTester.ts @@ -131,7 +131,7 @@ export function runLintFixtureTests({ const result = [ 'Original code:', - '========================', + '==========================', serializedErrors, '', 'Code after applying fixes:', diff --git a/src/tests/__snapshots__/autofix.test.ts.snap b/src/tests/__snapshots__/autofix.test.ts.snap index b52e51c..a42c56b 100644 --- a/src/tests/__snapshots__/autofix.test.ts.snap +++ b/src/tests/__snapshots__/autofix.test.ts.snap @@ -2,7 +2,7 @@ exports[`rule with accepted autofix should display errors before and code after fix 1`] = ` "Original code: -======================== +========================== const namedFooSecond = 'fixed' ~~~~~~~~~~~~~~ [1] @@ -20,7 +20,7 @@ const namedBarSecond = 'fixed' exports[`rule with nested reports and accepted autofix should display errors before and code after fix 1`] = ` "Original code: -======================== +========================== class SomethingFooSecond { ~~~~~~~~~~~~~~~~~~~~~~~~~~ [1] @@ -80,7 +80,7 @@ const namedFooFirst = 'not fixed' exports[`rule with unstable fix should show remaining errors after applying fix 1`] = ` "Original code: -======================== +========================== class SomethingFooThird { ~~~~~~~~~~~~~~~~~~~~~~~~~ [1]