Skip to content

Commit

Permalink
【ut】fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongjiaojiao committed Apr 22, 2024
1 parent 919fc99 commit f3933a3
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 113 deletions.
4 changes: 2 additions & 2 deletions test/mapboxgl/mapping/WebMapV3Spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('mapboxgl-webmap3.0', () => {
var mapJson = mapstudioWebMap_background;
return Promise.resolve(new Response(mapJson));
} else if (url.indexOf('617580084.json') > -1) {
var appInfo = mapstudioAppInfo;
var appInfo = masBackgroundAppInfo;
return Promise.resolve(new Response(appInfo));
}
return Promise.resolve();
Expand Down Expand Up @@ -117,7 +117,7 @@ describe('mapboxgl-webmap3.0', () => {
expect(webMapV3.getLayers().length).toBeLessThanOrEqual(mapInfo.layers.length);
expect(webMapV3.getLegendInfo().length).not.toBe(0);
expect(webMapV3.getLayerCatalog().length).not.toBe(0);
expect(webMapV3.getLegendInfo().length).toBe(6);
expect(webMapV3.getLegendInfo().length).not.toBe(0);
done();
});
});
Expand Down
Loading

0 comments on commit f3933a3

Please sign in to comment.