Add malformed hex RGB color *list* test

This commit is contained in:
adroitwhiz 2020-05-01 15:06:52 -04:00
parent 277a355ce4
commit cbe912e1be

View file

@ -88,6 +88,7 @@ test('toRgbColorList', t => {
// Malformed
t.deepEqual(cast.toRgbColorList('ffffff'), [0, 0, 0]);
t.deepEqual(cast.toRgbColorList('foobar'), [0, 0, 0]);
t.deepEqual(cast.toRgbColorList('#nothex'), [0, 0, 0]);
t.end();
});