aboutsummaryrefslogtreecommitdiffstats
path: root/packages/theme/test/index.test.js
blob: 3906433c161c51235780ba98f06b7ff22669d8ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
  });
});