tailwindcss/__tests__/defaultTheme.test.js
2019-03-14 15:51:21 -05:00

12 lines
331 B
JavaScript

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)
})