aboutsummaryrefslogtreecommitdiffstats
path: root/packages/theme/test
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-01-03 16:46:40 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-01-03 16:46:40 +0100
commitad585791493b09609be885e0304d987a0382db9a (patch)
treeb36509117e1e60f827a56a2caec12e566e015274 /packages/theme/test
parentAdd lerna (diff)
downloadferdium-app-ad585791493b09609be885e0304d987a0382db9a.tar.gz
ferdium-app-ad585791493b09609be885e0304d987a0382db9a.tar.zst
ferdium-app-ad585791493b09609be885e0304d987a0382db9a.zip
Add theme
Diffstat (limited to 'packages/theme/test')
-rw-r--r--packages/theme/test/index.test.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/theme/test/index.test.js b/packages/theme/test/index.test.js
new file mode 100644
index 000000000..3906433c1
--- /dev/null
+++ b/packages/theme/test/index.test.js
@@ -0,0 +1,17 @@
1const expect = require('expect.js');
2
3const { colorBackground: colorBackgroundDefault } = require('../lib/themes/default');
4const { colorBackground: colorBackgroundDark } = require('../lib/themes/dark');
5const { default: theme } = require('../lib');
6
7describe('Load theme', () => {
8 it('Should load default theme', () => {
9 const { colorBackground } = theme('default');
10 expect(colorBackground).to.be(colorBackgroundDefault);
11 });
12
13 it('Should load dark theme', () => {
14 const { colorBackground } = theme('dark');
15 expect(colorBackground).to.be(colorBackgroundDark);
16 });
17});