Skip to content

Commit 7a2aa00

Browse files
[fix] UT
AI-GEN: 100% Cursor
1 parent cdc9a89 commit 7a2aa00

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/mapboxgl/mapping/WebMapV2Spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4180,7 +4180,9 @@ describe('mapboxgl_WebMapV2', () => {
41804180
layers: [{ labelStyle: { fontFamily: '微软雅黑' } }]
41814181
};
41824182
const map = {
4183-
addLocalIdeographFontFamily: jasmine.createSpy('addLocalIdeographFontFamily')
4183+
addLocalIdeographFontFamily: jasmine.createSpy('addLocalIdeographFontFamily'),
4184+
remove: jasmine.createSpy('remove'),
4185+
getCRS: () => ({ epsgCode: 'EPSG:3857' })
41844186
};
41854187
await webMapV2.initializeMap(mapInfo, map);
41864188
expect(webMapV2._appendLayers).toBe(true);

0 commit comments

Comments
 (0)