Skip to content

Commit

Permalink
fix: autofix before/after separation marker alignment in snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbay committed Nov 13, 2021
1 parent cad9f27 commit 0985043
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ruleSnapshotTester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function runLintFixtureTests({

const result = [
'Original code:',
'========================',
'==========================',
serializedErrors,
'',
'Code after applying fixes:',
Expand Down
6 changes: 3 additions & 3 deletions src/tests/__snapshots__/autofix.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`rule with accepted autofix should display errors before and code after fix 1`] = `
"Original code:
========================
==========================
const namedFooSecond = 'fixed'
~~~~~~~~~~~~~~ [1]
Expand All @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 0985043

Please sign in to comment.