Skip to content

Commit

Permalink
use toMatchSnapshot instead of toMatchFormattedCss
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait authored and lukewarlow committed Nov 7, 2023
1 parent 00e1cea commit c8c2504
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
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;
}
"
`;
8 changes: 2 additions & 6 deletions tests/plugins/variants/popoverOpenVariant.test.js
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()

0 comments on commit c8c2504

Please sign in to comment.