Merge pull request #7698 from fredj/test_typo

Fix for loop in color test
This commit is contained in:
Frédéric Junod
2018-01-18 08:35:24 +01:00
committed by GitHub
2 changed files with 23 additions and 21 deletions

View File

@@ -121,9 +121,9 @@ describe('ol.color', function() {
});
it('throws an error on invalid colors', function() {
const invalidColors = ['tuesday', '#12345', '#1234567', 'rgb(255.0,0,0)'];
const invalidColors = ['tuesday', '#12345', '#1234567'];
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();