File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { describe , expect , it } from 'vitest' ;
2- import { themes } from './themes' ;
2+ import { themes , AUTO_THEME_LIGHT , AUTO_THEME_DARK } from './themes' ;
33
44describe ( 'themes' , ( ) => {
55 it ( 'should not use # prefix in background colors' , ( ) => {
@@ -19,4 +19,19 @@ describe('themes', () => {
1919 expect ( theme . accent . startsWith ( '#' ) ) . toBe ( false ) ;
2020 } ) ;
2121 } ) ;
22+ it ( 'AUTO_THEME_LIGHT references themes.light' , ( ) => {
23+ expect ( AUTO_THEME_LIGHT ) . toBe ( themes . light ) ;
24+ } ) ;
25+
26+ it ( 'AUTO_THEME_DARK references themes.dark' , ( ) => {
27+ expect ( AUTO_THEME_DARK ) . toBe ( themes . dark ) ;
28+ } ) ;
29+
30+ it ( 'AUTO_THEME_LIGHT bg matches themes.light.bg' , ( ) => {
31+ expect ( AUTO_THEME_LIGHT . bg ) . toBe ( themes . light . bg ) ;
32+ } ) ;
33+
34+ it ( 'AUTO_THEME_DARK accent matches themes.dark.accent' , ( ) => {
35+ expect ( AUTO_THEME_DARK . accent ) . toBe ( themes . dark . accent ) ;
36+ } ) ;
2237} ) ;
You can’t perform that action at this time.
0 commit comments