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 Jul 25, 2023
1 parent 56f3385 commit f50c05c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/plugins/colorScheme.test.js
@@ -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 f50c05c

Please sign in to comment.