aboutsummaryrefslogtreecommitdiffstats
path: root/test/themes/index.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/themes/index.test.ts')
-rw-r--r--test/themes/index.test.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/themes/index.test.ts b/test/themes/index.test.ts
new file mode 100644
index 000000000..387a296a8
--- /dev/null
+++ b/test/themes/index.test.ts
@@ -0,0 +1,17 @@
1import makeDefaultThemeConfig from '../../src/themes/default';
2import makeDarkThemeConfig from '../../src/themes/dark';
3import { theme, ThemeType } from '../../src/themes';
4
5describe('Load theme', () => {
6 it('loads default theme', () => {
7 const { colorBackground } = theme('default' as ThemeType);
8 expect(colorBackground).toBe(
9 makeDefaultThemeConfig('default').colorBackground,
10 );
11 });
12
13 it('loads dark theme', () => {
14 const { colorBackground } = theme('dark' as ThemeType);
15 expect(colorBackground).toBe(makeDarkThemeConfig('dark').colorBackground);
16 });
17});