From d017de19f18c154ae03a14c1d9ae76f3a9034c78 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Wed, 29 Apr 2020 12:43:06 +1000 Subject: finish color tests --- src/types/Color.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/types') diff --git a/src/types/Color.js b/src/types/Color.js index e9bc0ce..eb6368e 100644 --- a/src/types/Color.js +++ b/src/types/Color.js @@ -414,6 +414,10 @@ export default class Color { const color = new Color(grey, grey, grey) return color + } else { + + throw new Error('Unsupported random color mode') + } } -- cgit v1.2.3