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 authored and lukewarlow committed Nov 7, 2023
1 parent 1c10dac commit 28e9c00
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

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

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

0 comments on commit 28e9c00

Please sign in to comment.