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
52edab7
commit 193b30c
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
tests/plugins/variants/__snapshots__/forcedColorsVariants.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,11 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`should test the 'forcedColorsVariants' plugin 1`] = ` | ||
" | ||
@media (forced-colors: active) { | ||
.forced-colors\\: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,9 +1,3 @@ | ||
import { css, quickVariantPluginTest } from '../../util/run' | ||
import { quickVariantPluginTest } from '../../util/run' | ||
|
||
quickVariantPluginTest('forcedColorsVariants').toMatchFormattedCss(css` | ||
@media (forced-colors: active) { | ||
.forced-colors\:flex { | ||
display: flex; | ||
} | ||
} | ||
`) | ||
quickVariantPluginTest('forcedColorsVariants').toMatchSnapshot() |