Skip to content

Commit 66a1a4a

Browse files
theme tested
1 parent 2c9aeb1 commit 66a1a4a

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

lib/svg/themes.test.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from 'vitest';
2-
import { themes } from './themes';
2+
import { themes, AUTO_THEME_LIGHT, AUTO_THEME_DARK } from './themes';
33

44
describe('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
});

0 commit comments

Comments
 (0)