Skip to content

Commit

Permalink
SQUASHME: add unit tests for the theme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvogt committed Nov 30, 2024
1 parent 882a4fd commit 0b15e4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions theme/src/gatsby-plugin-theme-ui/theme.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 0b15e4a

Please sign in to comment.