Skip to content

Commit

Permalink
use toMatchSnapshot instead of toMatchFormattedCss
Browse files Browse the repository at this point in the history
More info: #12170
  • Loading branch information
RobinMalfait committed Oct 9, 2023
1 parent a9433ca commit d9ec386
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
13 changes: 13 additions & 0 deletions tests/plugins/__snapshots__/transitionBehavior.test.js.snap
@@ -0,0 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should test the 'transitionBehavior' plugin 1`] = `
"
.transition-allow-discrete {
transition-behavior: allow-discrete;
}
.transition-behavior-normal {
transition-behavior: normal;
}
"
`;
11 changes: 2 additions & 9 deletions tests/plugins/transitionBehavior.test.js
@@ -1,10 +1,3 @@
import { css, quickPluginTest } from '../util/run'
import { quickPluginTest } from '../util/run'

quickPluginTest('transitionBehavior').toMatchFormattedCss(css`
.transition-allow-discrete {
transition-behavior: allow-discrete;
}
.transition-behavior-normal {
transition-behavior: normal;
}
`)
quickPluginTest('transitionBehavior').toMatchSnapshot()

0 comments on commit d9ec386

Please sign in to comment.