Updated test to use renamed option

This commit is contained in:
Jeremy Smith
2020-01-30 08:03:02 +10:00
parent 7805768942
commit 001cb98990
+2 -2
View File
@@ -393,10 +393,10 @@ describe('ol.View', function() {
expect(constraint(1, 0, size)).to.be(1); expect(constraint(1, 0, size)).to.be(1);
}); });
it('accepts extent and largerResolutionConstraint and uses the larger value', function() { it('accepts extent and constrainOneAxis and uses the larger value', function() {
const constraint = getConstraint({ const constraint = getConstraint({
extent: [0, 0, 4000, 6000], extent: [0, 0, 4000, 6000],
largerResolutionConstraint: true constrainOneAxis: true
}); });
expect(constraint(1000, 0, size)).to.be(30); expect(constraint(1000, 0, size)).to.be(30);