Skip to content

Commit

Permalink
Add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjak committed Feb 7, 2024
1 parent e236ee6 commit b937370
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/layer/__tests__/BYOCLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,40 @@ describe('shouldUseLowResolutionCollection', () => {
width: 512,
expected: false,
},
{
layerParams: {
instanceId: 'INSTANCE_ID',
layerId: 'LAYER_ID',
collectionId: 'mockCollectionId',
subType: BYOCSubTypes.BYOC,
},
bbox: new BBox(
CRS_EPSG3857,
-15028131.257091936,
2504688.542848655,
-12523442.714243278,
5009377.085697314,
),
width: 512,
expected: false,
},
{
layerParams: {
instanceId: 'INSTANCE_ID',
layerId: 'LAYER_ID',
collectionId: 'mockCollectionId',
subType: BYOCSubTypes.BYOC,
},
bbox: new BBox(
CRS_EPSG3857,
112.81332057952881,
63.97041521013803,
119.85694837570192,
65.98227733565385,
),
width: 512,
expected: false,
},
])(
'shouldUseLowResolutionCollection %p',
async ({
Expand Down

0 comments on commit b937370

Please sign in to comment.