mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Add findColor test
This commit is contained in:
parent
8863065b97
commit
dd0c7b00dc
10
__tests__/findColor.test.js
Normal file
10
__tests__/findColor.test.js
Normal file
@ -0,0 +1,10 @@
|
||||
import postcss from 'postcss'
|
||||
import findColor from '../src/util/findColor'
|
||||
|
||||
/**
|
||||
* Tests
|
||||
*/
|
||||
it('finds a color in an object', () => {
|
||||
let color = findColor({red: '#FF0000', blue: '#0000FF'}, 'red')
|
||||
expect(color).toEqual(`#FF0000`)
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user