Skip to content

Commit

Permalink
use toMatchSnapshot instead of toMatchFormattedCss
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Oct 9, 2023
1 parent 52edab7 commit 193b30c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should test the 'forcedColorsVariants' plugin 1`] = `
"
@media (forced-colors: active) {
.forced-colors\\:flex {
display: flex;
}
}
"
`;
10 changes: 2 additions & 8 deletions tests/plugins/variants/forcedColorsVariants.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import { css, quickVariantPluginTest } from '../../util/run'
import { quickVariantPluginTest } from '../../util/run'

quickVariantPluginTest('forcedColorsVariants').toMatchFormattedCss(css`
@media (forced-colors: active) {
.forced-colors\:flex {
display: flex;
}
}
`)
quickVariantPluginTest('forcedColorsVariants').toMatchSnapshot()

0 comments on commit 193b30c

Please sign in to comment.