Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
xilanhuaweidapao committed Jan 24, 2025
1 parent b5615f9 commit 348d809
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/openlayers/overlay/VectorTileSuperMapRestSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@supermapgis/iclient-common/util/FetchRequest';
import { MapService } from '../../../src/openlayers/services/MapService';
import Map from 'ol/Map';
import MVT from 'ol/format/MVT';
import View from 'ol/View';
import VectorTileLayer from 'ol/layer/VectorTile';

Expand Down Expand Up @@ -120,6 +121,9 @@ describe('openlayers_VectorTileSuperMapRest', () => {
tiles: ['tile/{z}/{y}/{x}.pbf']
})));
}
if (url.indexOf('http://localhost:9876/iserver/services/map-china400/rest/maps/China') > -1) {
return Promise.resolve(new Response(JSON.stringify(mapObject)));
}
return Promise.resolve();
});
new MapService(url).getMapInfo((serviceResult) => {
Expand Down

0 comments on commit 348d809

Please sign in to comment.