Fix line collection arguments in tests, thanks @ahocevar

This commit is contained in:
Tom Payne
2013-06-10 14:43:01 +02:00
parent fc79a0ef3b
commit bbb95e15fa

View File

@@ -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();
});