From ad585791493b09609be885e0304d987a0382db9a Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Thu, 3 Jan 2019 16:46:40 +0100 Subject: Add theme --- packages/theme/test/index.test.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/theme/test/index.test.js (limited to 'packages/theme/test') 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 @@ +const expect = require('expect.js'); + +const { colorBackground: colorBackgroundDefault } = require('../lib/themes/default'); +const { colorBackground: colorBackgroundDark } = require('../lib/themes/dark'); +const { default: theme } = require('../lib'); + +describe('Load theme', () => { + it('Should load default theme', () => { + const { colorBackground } = theme('default'); + expect(colorBackground).to.be(colorBackgroundDefault); + }); + + it('Should load dark theme', () => { + const { colorBackground } = theme('dark'); + expect(colorBackground).to.be(colorBackgroundDark); + }); +}); -- cgit v1.2.3-54-g00ecf