We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1644cb6 commit fd10f3eCopy full SHA for fd10f3e
test/map/utils/zoom.test.ts
@@ -1,3 +1,18 @@
1
import { describe, it } from 'vitest';
2
+import { getMapZoom } from '../../../src/map/utils/zoom';
3
-describe.concurrent('', () => {});
4
+describe.concurrent('', () => {
5
+ it('zoom > 19', ({expect}) => {
6
+ const res = getMapZoom(1);
7
+
8
+ expect(res).toBeTypeOf('number');
9
+ expect(res).toBe(19);
10
+ });
11
12
+ it('zoom < 0', ({expect}) => {
13
+ const res = getMapZoom(100000000);
14
15
16
+ expect(res).toBe(0);
17
18
+});
0 commit comments