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 committed Oct 9, 2023
1 parent d253525 commit 6bcbb10
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
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 'startingStyleVariant' plugin 1`] = `
"
@starting-style {
.starting\\:flex {
display: flex;
}
}
"
`;
10 changes: 2 additions & 8 deletions tests/plugins/variants/startingStyleVariant.test.js
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('startingStyleVariant').toMatchFormattedCss(css`
@starting-style {
.starting\:flex {
display: flex;
}
}
`)
quickVariantPluginTest('startingStyleVariant').toMatchSnapshot()

0 comments on commit 6bcbb10

Please sign in to comment.