diff options
author | 2022-05-12 16:34:53 -0700 | |
---|---|---|
committer | 2022-05-12 23:34:53 +0000 | |
commit | cc3303cbd87b1dbfe4e41ff8acf4df9e3dc0805d (patch) | |
tree | 73fd8c74939bda1ead888d6b6dccbdf68646fabb /test | |
parent | fix: preload script detection in unit tests (diff) | |
download | ferdium-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 'test')
-rw-r--r-- | test/themes/index.test.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test/themes/index.test.ts b/test/themes/index.test.ts deleted file mode 100644 index 042b70009..000000000 --- a/test/themes/index.test.ts +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | import expect from 'expect.js'; | ||
2 | |||
3 | import makeDefaultThemeConfig from '../../src/themes/default'; | ||
4 | import makeDarkThemeConfig from '../../src/themes/dark'; | ||
5 | import { theme, ThemeType } from '../../src/themes'; | ||
6 | |||
7 | describe('Load theme', () => { | ||
8 | it('Should load default theme', () => { | ||
9 | const { colorBackground } = theme('default' as ThemeType); | ||
10 | expect(colorBackground).to.be( | ||
11 | makeDefaultThemeConfig('default').colorBackground, | ||
12 | ); | ||
13 | }); | ||
14 | |||
15 | it('Should load dark theme', () => { | ||
16 | const { colorBackground } = theme('dark' as ThemeType); | ||
17 | expect(colorBackground).to.be(makeDarkThemeConfig('dark').colorBackground); | ||
18 | }); | ||
19 | }); | ||