Add findColor test
This commit is contained in:
parent
8863065b97
commit
dd0c7b00dc
1 changed files with 10 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue