Use ol.base.checkKeys to check keys
This commit is contained in:
@@ -27,5 +27,16 @@ describe("ol.bounds", function() {
|
||||
|
||||
});
|
||||
|
||||
it("raises an error on invalid keys", function() {
|
||||
expect(function() {
|
||||
ol.bounds({
|
||||
minX: 9,
|
||||
minY: 10,
|
||||
maxX: 11,
|
||||
maxWhy: 12
|
||||
});
|
||||
}).toThrow();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user