Skip to content

Commit

Permalink
add colorScheme plugin test
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Oct 9, 2023
1 parent 645d547 commit b30761a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/plugins/colorScheme.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { css, quickPluginTest } from '../util/run'

quickPluginTest('colorScheme').toMatchFormattedCss(css`
.color-scheme-dark {
color-scheme: dark;
}
.color-scheme-light {
color-scheme: light;
}
.color-scheme-light-dark {
color-scheme: light dark;
}
.color-scheme-dark-only {
color-scheme: dark only;
}
.color-scheme-light-only {
color-scheme: light only;
}
`)

0 comments on commit b30761a

Please sign in to comment.