Skip to content

Commit 9769dc0

Browse files
committed
Fix test error
1 parent 79319ad commit 9769dc0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/layers.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ describe('layer management', () => {
7272
});
7373
});
7474

75-
describe('addCogLayer', () => {
76-
it('should add COG layer with TiTiler URL', async () => {
77-
const { addCogLayer } = await import('../src/lib/layers/raster');
75+
describe('addTileCogLayer', () => {
76+
it('should add tile-based COG layer with TiTiler URL', async () => {
77+
const { addTileCogLayer } = await import('../src/lib/layers/raster');
7878

79-
const layerId = addCogLayer(mockMap as any, 'https://example.com/raster.tif', {
79+
const layerId = addTileCogLayer(mockMap as any, 'https://example.com/raster.tif', {
8080
tileServerUrl: 'https://titiler.example.com',
8181
opacity: 0.9,
8282
});

0 commit comments

Comments
 (0)