Skip to content

Commit

Permalink
use toMatchSnapshot instead of toMatchFormattedCss
Browse files Browse the repository at this point in the history
More info: #12170
  • Loading branch information
RobinMalfait committed Oct 9, 2023
1 parent 799076c commit 7069ed6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
13 changes: 13 additions & 0 deletions tests/plugins/__snapshots__/forcedColorsAdjust.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should test the 'forcedColorsAdjust' plugin 1`] = `
"
.forced-colors-auto {
forced-colors-adjust: auto;
}
.forced-colors-none {
forced-colors-adjust: none;
}
"
`;
11 changes: 2 additions & 9 deletions tests/plugins/forcedColorsAdjust.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
import { css, quickPluginTest } from '../util/run'
import { quickPluginTest } from '../util/run'

quickPluginTest('forcedColorsAdjust').toMatchFormattedCss(css`
.forced-colors-auto {
forced-colors-adjust: auto;
}
.forced-colors-none {
forced-colors-adjust: none;
}
`)
quickPluginTest('forcedColorsAdjust').toMatchSnapshot()

0 comments on commit 7069ed6

Please sign in to comment.