diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2021-10-15 17:20:09 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 17:20:09 +0530 |
commit | a05ef4bb5101e6e8d999ad0d7383b394996fb763 (patch) | |
tree | 38072e3abe8d0bdaababf0abd1710dc47baa4a3c /test/themes | |
parent | chore: move 'packages/forms' into 'src' (no longer an injected package) (#2079) (diff) | |
download | ferdium-app-a05ef4bb5101e6e8d999ad0d7383b394996fb763.tar.gz ferdium-app-a05ef4bb5101e6e8d999ad0d7383b394996fb763.tar.zst ferdium-app-a05ef4bb5101e6e8d999ad0d7383b394996fb763.zip |
chore: move 'packages/themes' into 'src' (no longer an injected package) (#2080)
Diffstat (limited to 'test/themes')
-rw-r--r-- | test/themes/index.test.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/themes/index.test.ts b/test/themes/index.test.ts new file mode 100644 index 000000000..042b70009 --- /dev/null +++ b/test/themes/index.test.ts | |||
@@ -0,0 +1,19 @@ | |||
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 | }); | ||