Do not accept null coordinates in Point constructor

This commit is contained in:
ahocevar
2018-07-07 14:48:46 +02:00
parent da0838dde2
commit c0d04ea077
8 changed files with 31 additions and 44 deletions

View File

@@ -3,10 +3,10 @@ import Point from '../../../../src/ol/geom/Point.js';
describe('ol.geom.Point', function() {
it('can be constructed with a null geometry', function() {
it('cannot be constructed with a null geometry', function() {
expect(function() {
return new Point(null);
}).not.to.throwException();
}).to.throwException();
});
describe('construct with 2D coordinates', function() {