tailwindcss/tests/defaultTheme.test.js

12 lines
331 B
JavaScript
Raw Normal View History

2019-03-14 15:51:21 -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)
})