From c5de1fd06ca814182291a9f85a035ceb9bd6a6f9 Mon Sep 17 00:00:00 2001 From: Bart Van Houtte <> Date: Fri, 23 Oct 2020 16:58:29 +0200 Subject: [PATCH] - Fix tests --- src/js/utils/test/colors.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/utils/test/colors.test.js b/src/js/utils/test/colors.test.js index 5a76231..3b8d276 100644 --- a/src/js/utils/test/colors.test.js +++ b/src/js/utils/test/colors.test.js @@ -3,12 +3,12 @@ const colors = require('../colors'); describe('utils.colors', () => { it('should return #aaabac for RGB()', () => { - assert.equal(colors.getColor('rgb(170, 171, 172)', '#aaabac')); + assert.equal(colors.getColor('rgb(170, 171, 172)'), '#aaabac'); }); it('should return #ff5858 for the named color red', () => { - assert.equal(colors.getColor('red', '#ff5858d')); + assert.equal(colors.getColor('red'), '#ff5858d'); }); it('should return #1a5c29 for the hex color #1a5c29', () => { - assert.equal(colors.getColor('#1a5c29', '#1a5c29')); + assert.equal(colors.getColor('#1a5c29'), '#1a5c29'); }); }); \ No newline at end of file