aboutsummaryrefslogtreecommitdiffstats
path: root/test/themes/index.test.ts
blob: 8f23dfb75d553c25c6dfe81c66127cf196df5f07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { type ThemeType, theme } from '../../src/themes';
import makeDarkThemeConfig from '../../src/themes/dark';
import makeDefaultThemeConfig from '../../src/themes/default';

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