Spaces:
Runtime error
Runtime error
Pedro de Carvalho commited on
Commit ·
d552c11
1
Parent(s): de12c48
test(theme): add unit tests for theme constants
Browse files
client/src/__tests__/theme.test.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { describe, expect, it } from 'vitest'
|
| 2 |
+
import { getThemeMode, THEMES } from '../theme.ts'
|
| 3 |
+
|
| 4 |
+
describe('theme catalog', () => {
|
| 5 |
+
it('uses forest as the default theme', () => {
|
| 6 |
+
expect(getThemeMode()).toBe('forest')
|
| 7 |
+
})
|
| 8 |
+
|
| 9 |
+
it('does not expose removed Ocean or Nordic themes', () => {
|
| 10 |
+
expect(Object.keys(THEMES)).toEqual(['midnight', 'garden', 'forest', 'arctic'])
|
| 11 |
+
})
|
| 12 |
+
})
|