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 8dd311d commit 5904a4f
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 'scriptingVariants' plugin 1`] = `
"
@media (scripting: none) {
.noscript\\:flex {
display: flex;
}
}
@media (scripting: enabled) {
.scripting\\:flex {
display: flex;
}
}
"
`;
15 changes: 2 additions & 13 deletions tests/plugins/variants/scriptingVariants.test.js
@@ -1,14 +1,3 @@
import { css, quickVariantPluginTest } from '../../util/run'
import { quickVariantPluginTest } from '../../util/run'

quickVariantPluginTest('scriptingVariants').toMatchFormattedCss(css`
@media (scripting: none) {
.noscript\:flex {
display: flex;
}
}
@media (scripting: enabled) {
.scripting\:flex {
display: flex;
}
}
`)
quickVariantPluginTest('scriptingVariants').toMatchSnapshot()

0 comments on commit 5904a4f

Please sign in to comment.