mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-08 14:01:58 -05:00
Add malformed hex RGB color *list* test
This commit is contained in:
parent
277a355ce4
commit
cbe912e1be
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue