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