Skip to content

Commit 6f43d4f

Browse files
author
David Hemphill
committed
Add test for configuration loading
1 parent 9eda1e9 commit 6f43d4f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

__tests__/importsConfig.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import tailwind from '../src/index'
2+
import config from '../defaultConfig.js'
3+
4+
test('it can accept a config file', () => {
5+
tailwind('./defaultConfig.js')
6+
expect(tailwind.defaultConfig()).toEqual(config)
7+
})

0 commit comments

Comments
 (0)