aboutsummaryrefslogtreecommitdiffstats
path: root/test/themes/index.test.ts
blob: 042b700092ed10737526892a6247285db99055ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import expect from 'expect.js';

import makeDefaultThemeConfig from '../../src/themes/default';
import makeDarkThemeConfig from '../../src/themes/dark';
import { theme, ThemeType } from '../../src/themes';

describe('Load theme', () => {
  it('Should load default theme', () => {
    const { colorBackground } = theme('default' as ThemeType);
    expect(colorBackground).to.be(
      makeDefaultThemeConfig('default').colorBackground,
    );
  });

  it('Should load dark theme', () => {
    const { colorBackground } = theme('dark' as ThemeType);
    expect(colorBackground).to.be(makeDarkThemeConfig('dark').colorBackground);
  });
});