Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewharvey committed Oct 4, 2019
1 parent 21b26d6 commit 7f9b195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/ui/map.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,14 +807,14 @@ test('Map', (t) => {
t.test('throw on maxZoom smaller than minZoom at init', (t) => {
t.throws(() => {
createMap(t, {minZoom:10, maxZoom:5});
}, new Error(`maxZoom must be greater than minZoom`));
}, new Error(`maxZoom must be greater than or equal to minZoom`));
t.end();
});

t.test('throw on maxZoom smaller than minZoom at init with falsey maxZoom', (t) => {
t.throws(() => {
createMap(t, {minZoom:1, maxZoom:0});
}, new Error(`maxZoom must be greater than minZoom`));
}, new Error(`maxZoom must be greater than or equal to minZoom`));
t.end();
});

Expand Down

0 comments on commit 7f9b195

Please sign in to comment.