Skip to content

Commit 632331a

Browse files
committed
【bug】1) 单元测试报错wms。
(reviewed by qiulin)
1 parent cf7b70b commit 632331a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/openlayers/mapping/WebMapSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,12 @@ describe('openlayers_WebMap', () => {
664664
errorCallback: function () {}
665665
};
666666
let wmtsData = '<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://support.supermap.com:8090/iserver/services/map-world/wmts100/wmts,1.0,wmtsGetCapabilities_response.xsd"><<ows:OperationsMetadata><<ows:Operation name="GetCapabilities"></ows:Operation></ows:OperationsMetadata></Capabilities>';
667-
let requestUrl = `${proxy}${encodeURIComponent('http://support.supermap.com:8090/iserver/services/map-world/wms130/World?MAP=World&&SERVICE=WMS&REQUEST=GetCapabilities')}`
667+
// let requestUrl = `${proxy}${encodeURIComponent('http://support.supermap.com:8090/iserver/services/map-world/wms130/World?MAP=World&&SERVICE=WMS&REQUEST=GetCapabilities')}`
668668
spyOn(FetchRequest, 'get').and.callFake((url) => {
669669
if (url.indexOf('map.json') > -1) {
670670
var mapJson = datavizWebMap_WMS;
671671
return Promise.resolve(new Response(mapJson));
672-
} else if (url === requestUrl) {
672+
} else if (url.indexOf('GetCapabilities')) {
673673
return Promise.resolve(new Response(wmtsData));
674674
}
675675
return Promise.resolve();

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