Updates the option to be called showFullExtent

This commit is contained in:
Jeremy Smith
2020-02-05 16:46:45 +10:00
parent 001cb98990
commit 3082972cce
3 changed files with 28 additions and 23 deletions

View File

@@ -393,10 +393,10 @@ describe('ol.View', function() {
expect(constraint(1, 0, size)).to.be(1);
});
it('accepts extent and constrainOneAxis and uses the larger value', function() {
it('accepts extent and showFullExtent and uses the larger value', function() {
const constraint = getConstraint({
extent: [0, 0, 4000, 6000],
constrainOneAxis: true
showFullExtent: true
});
expect(constraint(1000, 0, size)).to.be(30);