blob: 387a296a8644e9cb85546c14107c3d9bddeecaa3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import makeDefaultThemeConfig from '../../src/themes/default';
import makeDarkThemeConfig from '../../src/themes/dark';
import { theme, ThemeType } from '../../src/themes';
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);
});
});
|