diff --git a/theme/src/gatsby-plugin-theme-ui/theme.spec.js b/theme/src/gatsby-plugin-theme-ui/theme.spec.js index c889c3de..1e6ae77d 100644 --- a/theme/src/gatsby-plugin-theme-ui/theme.spec.js +++ b/theme/src/gatsby-plugin-theme-ui/theme.spec.js @@ -9,6 +9,12 @@ describe('Theme Configuration', () => { expect(mergedTheme).toBeTruthy() }) + it('defaults the color mode to dark', () => { + expect(theme.config.useColorSchemeMediaQuery).toBe(false) + expect(theme.config.initialColorModeName).toBe('dark') + expect(theme.config).toHaveProperty('useLocalStorage') + }) + it('contains custom fonts', () => { expect(theme.fonts).toHaveProperty('sans') expect(theme.fonts).toHaveProperty('serif')