From 00f70ce855b0b4a08aa3d8489bc8b9b38ae59eaa Mon Sep 17 00:00:00 2001 From: Ugo Stephant Date: Thu, 7 Mar 2019 08:45:52 +0100 Subject: [PATCH] test: add utils tests --- tests/utils.test.js | 353 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 353 insertions(+) create mode 100644 tests/utils.test.js diff --git a/tests/utils.test.js b/tests/utils.test.js new file mode 100644 index 000000000..387a7bd7a --- /dev/null +++ b/tests/utils.test.js @@ -0,0 +1,353 @@ +import { + injectStyles, + omit, + hsva2hsla, + hsla2hsva, + hsva2rgba, + rgba2hsva, + rgba2hex, + denormalizeHSLA, + denormalizeHSVA, + denormalizeRGBA, + parseColor, + stringifyColor, + getContainerNode, + classNames, +} from '../src/utils'; + +describe('injectStyles(styles, options = {})', () => { + + it('should inject a new