Skip to content

Commit b937370

Browse files
committed
Add more test cases
1 parent e236ee6 commit b937370

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/layer/__tests__/BYOCLayer.ts

+34
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,40 @@ describe('shouldUseLowResolutionCollection', () => {
371371
width: 512,
372372
expected: false,
373373
},
374+
{
375+
layerParams: {
376+
instanceId: 'INSTANCE_ID',
377+
layerId: 'LAYER_ID',
378+
collectionId: 'mockCollectionId',
379+
subType: BYOCSubTypes.BYOC,
380+
},
381+
bbox: new BBox(
382+
CRS_EPSG3857,
383+
-15028131.257091936,
384+
2504688.542848655,
385+
-12523442.714243278,
386+
5009377.085697314,
387+
),
388+
width: 512,
389+
expected: false,
390+
},
391+
{
392+
layerParams: {
393+
instanceId: 'INSTANCE_ID',
394+
layerId: 'LAYER_ID',
395+
collectionId: 'mockCollectionId',
396+
subType: BYOCSubTypes.BYOC,
397+
},
398+
bbox: new BBox(
399+
CRS_EPSG3857,
400+
112.81332057952881,
401+
63.97041521013803,
402+
119.85694837570192,
403+
65.98227733565385,
404+
),
405+
width: 512,
406+
expected: false,
407+
},
374408
])(
375409
'shouldUseLowResolutionCollection %p',
376410
async ({

0 commit comments

Comments
 (0)