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); }); });