Skip to content

Commit 7069ed6

Browse files
committed
use toMatchSnapshot instead of toMatchFormattedCss
More info: #12170
1 parent 799076c commit 7069ed6

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should test the 'forcedColorsAdjust' plugin 1`] = `
4+
"
5+
.forced-colors-auto {
6+
forced-colors-adjust: auto;
7+
}
8+
9+
.forced-colors-none {
10+
forced-colors-adjust: none;
11+
}
12+
"
13+
`;
+2-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
import { css, quickPluginTest } from '../util/run'
1+
import { quickPluginTest } from '../util/run'
22

3-
quickPluginTest('forcedColorsAdjust').toMatchFormattedCss(css`
4-
.forced-colors-auto {
5-
forced-colors-adjust: auto;
6-
}
7-
.forced-colors-none {
8-
forced-colors-adjust: none;
9-
}
10-
`)
3+
quickPluginTest('forcedColorsAdjust').toMatchSnapshot()

0 commit comments

Comments
 (0)