test: add unit test

This commit is contained in:
Krist Wongsuphasawat 2019-09-18 23:29:33 -07:00 committed by Yongjie Zhao
parent b98fecd1be
commit 976e88dff8

View File

@ -0,0 +1,7 @@
import { hexToRGB } from '../../src/utils/colors';
describe('colors', () => {
it('hexToRGB()', () => {
expect(hexToRGB('#ffffff')).toEqual([255, 255, 255, 255]);
});
});