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 27510c0 commit 687b869
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
@@ -0,0 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should test the 'reducedTransparencyVariants' plugin 1`] = `
"
@media (prefers-reduced-transparency: no-preference) {
.transparency-safe\\:flex {
display: flex;
}
}
@media (prefers-reduced-transparency: reduce) {
.transparency-reduce\\:flex {
display: flex;
}
}
"
`;
15 changes: 2 additions & 13 deletions tests/plugins/variants/reducedTransparencyVariants.test.js
@@ -1,14 +1,3 @@
import { css, quickVariantPluginTest } from '../../util/run'
import { quickVariantPluginTest } from '../../util/run'

quickVariantPluginTest('reducedTransparencyVariants').toMatchFormattedCss(css`
@media (prefers-reduced-transparency: no-preference) {
.transparency-safe\:flex {
display: flex;
}
}
@media (prefers-reduced-transparency: reduce) {
.transparency-reduce\:flex {
display: flex;
}
}
`)
quickVariantPluginTest('reducedTransparencyVariants').toMatchSnapshot()

0 comments on commit 687b869

Please sign in to comment.