defaultTheme.test.js 340 B

123456789101112
  1. import theme from '../src/public/default-theme'
  2. import configStub from '../stubs/defaultConfig.stub.js'
  3. test('the default theme matches the stub', () => {
  4. expect(theme).toEqual(configStub.theme)
  5. })
  6. test('modifying the default theme does not affect the stub', () => {
  7. theme.colors = {}
  8. expect(theme).not.toEqual(configStub.theme)
  9. })