From dc5b2a4ea0849f38ec5eeb37be38fc9e3b1bac34 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 12 Jan 2018 12:14:55 +0100 Subject: [PATCH] Fix for loop in color test --- test/spec/ol/color.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spec/ol/color.test.js b/test/spec/ol/color.test.js index ad0993f5c1..83b45acc07 100644 --- a/test/spec/ol/color.test.js +++ b/test/spec/ol/color.test.js @@ -123,7 +123,7 @@ describe('ol.color', function() { it('throws an error on invalid colors', function() { const invalidColors = ['tuesday', '#12345', '#1234567', 'rgb(255.0,0,0)']; let i, ii; - for (i = 0, ii < invalidColors.length; i < ii; ++i) { + for (i = 0, ii = invalidColors.length; i < ii; ++i) { expect(function() { fromString(invalidColors[i]); }).to.throwException();