Skip to content

Commit f1cfc1d

Browse files
committed
use toMatchSnapshot instead of toMatchFormattedCss
More info: #12170
1 parent e2ded00 commit f1cfc1d

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should test the 'reducedTransparencyVariants' plugin 1`] = `
4+
"
5+
@media (prefers-reduced-transparency: no-preference) {
6+
.transparency-safe\\:flex {
7+
display: flex;
8+
}
9+
}
10+
11+
@media (prefers-reduced-transparency: reduce) {
12+
.transparency-reduce\\:flex {
13+
display: flex;
14+
}
15+
}
16+
"
17+
`;
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
import { css, quickVariantPluginTest } from '../../util/run'
1+
import { quickVariantPluginTest } from '../../util/run'
22

3-
quickVariantPluginTest('reducedTransparencyVariants').toMatchFormattedCss(css`
4-
@media (prefers-reduced-transparency: no-preference) {
5-
.transparency-safe\:flex {
6-
display: flex;
7-
}
8-
}
9-
@media (prefers-reduced-transparency: reduce) {
10-
.transparency-reduce\:flex {
11-
display: flex;
12-
}
13-
}
14-
`)
3+
quickVariantPluginTest('reducedTransparencyVariants').toMatchSnapshot()

0 commit comments

Comments
 (0)