Skip to content

Commit c949295

Browse files
committed
【fix】UT
1 parent 1172b84 commit c949295

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/openlayers/mapping/WebMapSpec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,13 +1484,13 @@ describe('openlayers_WebMap', () => {
14841484
});
14851485

14861486
it('initialize_MVT', (done) => {
1487+
window.olmsbak = window.olms;
14871488
window.olms = { applyBackground: function () { }, stylefunction: function () { return function () { } } }
14881489
let options = {
14891490
server: server,
14901491
successCallback,
14911492
errorCallback: function () { }
14921493
};
1493-
CommonUtil
14941494
spyOn(CommonUtil, 'isInTheSameDomain').and.callFake((url) => {
14951495
return true;
14961496
});
@@ -1509,6 +1509,7 @@ describe('openlayers_WebMap', () => {
15091509
var datavizWebmap = new WebMap(id, options);
15101510

15111511
function successCallback() {
1512+
window.olms = window.olmsbak;
15121513
expect(datavizWebmap.server).toBe(server);
15131514
expect(datavizWebmap.errorCallback).toBeDefined();
15141515
expect(datavizWebmap.map.getLayers().getArray()[0] instanceof olLayer.VectorTile).toBeTrue();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy