From bbb95e15fa2939441ad4f3e1cda8772cf1fdd5cf Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Mon, 10 Jun 2013 14:43:01 +0200 Subject: [PATCH] Fix line collection arguments in tests, thanks @ahocevar --- test/spec/ol/geom2/linecollection.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec/ol/geom2/linecollection.test.js b/test/spec/ol/geom2/linecollection.test.js index 1968e679f1..8fe7c4eddb 100644 --- a/test/spec/ol/geom2/linecollection.test.js +++ b/test/spec/ol/geom2/linecollection.test.js @@ -70,14 +70,14 @@ describe('ol.geom2.LineStringCollection', function() { it('throws an error when dimensions are inconsistent', function() { expect(function() { - var lsc = ol.geom2.LineStringCollection.pack([[0, 1], [2, 3, 4]]); + var lsc = ol.geom2.LineStringCollection.pack([[[0, 1], [2, 3, 4]]]); lsc = lsc; // suppress gjslint warning about unused variable }).to.throwException(); }); it('throws an error when a line string is too short', function() { expect(function() { - var lsc = ol.geom2.LineStringCollection.pack([[0, 1]]); + var lsc = ol.geom2.LineStringCollection.pack([[[0, 1]]]); lsc = lsc; // suppress gjslint warning about unused variable }).to.throwException(); });