blob: 7eda4e35998588449c99eeb0a58fca06cf4228bf (
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';
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);
});
});
|