aboutsummaryrefslogtreecommitdiffstats
path: root/src/themes
diff options
context:
space:
mode:
authorLibravatar Aditya Mangalampalli <aditya.mangalampalli@gmail.com>2022-05-12 16:34:53 -0700
committerLibravatar GitHub <noreply@github.com>2022-05-12 23:34:53 +0000
commitcc3303cbd87b1dbfe4e41ff8acf4df9e3dc0805d (patch)
tree73fd8c74939bda1ead888d6b6dccbdf68646fabb /src/themes
parentfix: preload script detection in unit tests (diff)
downloadferdium-app-cc3303cbd87b1dbfe4e41ff8acf4df9e3dc0805d.tar.gz
ferdium-app-cc3303cbd87b1dbfe4e41ff8acf4df9e3dc0805d.tar.zst
ferdium-app-cc3303cbd87b1dbfe4e41ff8acf4df9e3dc0805d.zip
Add Unit Testing for `url-helpers.ts`; Moved all tests into single pattern so they are run as a suite (#112)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/themes')
-rw-r--r--src/themes/index.test.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/themes/index.test.ts b/src/themes/index.test.ts
new file mode 100644
index 000000000..e9f0f391b
--- /dev/null
+++ b/src/themes/index.test.ts
@@ -0,0 +1,17 @@
1import makeDefaultThemeConfig from './default';
2import makeDarkThemeConfig from './dark';
3import { theme, ThemeType } from '.';
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});