tailwindcss/tests/defaultTheme.test.js

14 lines
422 B
JavaScript
Raw Permalink Normal View History

import theme from '../src/public/default-theme'
2019-03-14 15:51:21 -05:00
import configStub from '../stubs/defaultConfig.stub.js'
test.todo('remove mutation from these tests so we can run against both engines')
2019-03-14 15:51:21 -05:00
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)
})