From 465b5772763ccb8d4970d4c55e30a518abb7be3e Mon Sep 17 00:00:00 2001 From: Ricardo Cino Date: Sun, 26 Jun 2022 01:26:19 +0200 Subject: chore: moved tests to ./test directory (#366) * chore: allow coverage to be generated from non-tested files --- test/themes/index.test.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/themes/index.test.ts (limited to 'test/themes') diff --git a/test/themes/index.test.ts b/test/themes/index.test.ts new file mode 100644 index 000000000..387a296a8 --- /dev/null +++ b/test/themes/index.test.ts @@ -0,0 +1,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); + }); +}); -- cgit v1.2.3-70-g09d2