blob: e9f0f391bf8cd615d9e72650171c5c691a1cb306 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import makeDefaultThemeConfig from './default';
import makeDarkThemeConfig from './dark';
import { theme, ThemeType } from '.';
describe('Load theme', () => {
it('loads default theme', () => {
const { colorBackground } = theme('default' as ThemeType);
expect(colorBackground).toBe(
makeDefaultThemeConfig('default').colorBackground,
);
});
it('loads dark theme', () => {
const { colorBackground } = theme('dark' as ThemeType);
expect(colorBackground).toBe(makeDarkThemeConfig('dark').colorBackground);
});
});
|