forked from tailwindlabs/tailwindcss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use
toMatchSnapshot
instead of toMatchFormattedCss
More info: tailwindlabs#12170
- Loading branch information
1 parent
3cb331b
commit e99b0d6
Showing
2 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
tests/plugins/variants/__snapshots__/scriptingVariants.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |