core/api/tailwindcss-master/__tests__/defaultTheme.test.js

12 lines
342 B
JavaScript
Raw Normal View History

2022-12-11 13:55:49 +05:00
import theme from '../defaultTheme.js'
import configStub from '../stubs/defaultConfig.stub.js'
test('the default theme matches the stub', () => {
expect(theme).toEqual(configStub.theme)
})
test('modifying the default theme does not affect the stub', () => {
theme.colors = {}
expect(theme).not.toEqual(configStub.theme)
})