tailwindcss/tests/defaultConfig.test.js

12 lines
325 B
JavaScript
Raw Normal View History

2017-11-24 14:14:04 -05:00
import config from '../defaultConfig.js'
2019-03-14 15:51:21 -05:00
import configStub from '../stubs/defaultConfig.stub.js'
2017-11-24 14:14:04 -05:00
test('the default config matches the stub', () => {
2019-03-14 15:51:21 -05:00
expect(config).toEqual(configStub)
})
test('modifying the default config does not affect the stub', () => {
config.theme = {}
expect(config).not.toEqual(configStub)
2017-11-24 14:14:04 -05:00
})