From cbe912e1bed0ec41bb9f4b03595addbbf3623464 Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Fri, 1 May 2020 15:06:52 -0400 Subject: [PATCH] Add malformed hex RGB color *list* test --- test/unit/util_cast.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/util_cast.js b/test/unit/util_cast.js index d2675e721..bf2bbdff7 100644 --- a/test/unit/util_cast.js +++ b/test/unit/util_cast.js @@ -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(); });