Skip to content

Commit

Permalink
Update scaleline.test.js
Browse files Browse the repository at this point in the history
Add test to check that nm appears when zoom > 40.
  • Loading branch information
sunilkpai committed Dec 30, 2023
1 parent ff5da02 commit 8abcf80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/browser/spec/ol/control/scaleline.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,9 @@ describe('ol.control.ScaleLine', function () {
let mapView;

const getMetricUnit = function (zoom) {
if (zoom > 40) {
return 'nm';
}
if (zoom > 30) {
return 'μm';
}
Expand Down

0 comments on commit 8abcf80

Please sign in to comment.