Skip to content

Commit 28e9c00

Browse files
RobinMalfaitlukewarlow
authored andcommitted
use toMatchSnapshot instead of toMatchFormattedCss
More info: #12170
1 parent 1c10dac commit 28e9c00

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should test the 'invertedColorsVariants' plugin 1`] = `
4+
"
5+
@media (inverted-colors: inverted) {
6+
.inverted-colors\\:flex {
7+
display: flex;
8+
}
9+
}
10+
"
11+
`;
+2-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
import { css, quickVariantPluginTest } from '../../util/run'
1+
import { quickVariantPluginTest } from '../../util/run'
22

3-
quickVariantPluginTest('invertedColorsVariants').toMatchFormattedCss(css`
4-
@media (inverted-colors: inverted) {
5-
.inverted-colors\:flex {
6-
display: flex;
7-
}
8-
}
9-
`)
3+
quickVariantPluginTest('invertedColorsVariants').toMatchSnapshot()

0 commit comments

Comments
 (0)