Skip to content

Commit b74291e

Browse files
committed
【fix】修复UT
1 parent c99094d commit b74291e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/karma.conf.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ module.exports = function (config) {
6161
{ pattern: '../src/classic/libs/SuperMap_Basic-8.1.1-17729.js', included: true },
6262
{ pattern: '../src/classic/libs/Lang/*.js', included: true },
6363
{ pattern: '../src/classic/theme/default/*.css', included: true },
64+
{ pattern: './resources/data/**.fgb', included: false },
65+
{ pattern: './resources/img/**.svg', included: false },
66+
{ pattern: './resources/img/baiduTileTest.png', included: false },
6467
/**测试文件**/
6568
'./test-main-classic.js',
6669

@@ -83,8 +86,6 @@ module.exports = function (config) {
8386
'../src/openlayers/**/!(index).js',
8487
/**测试文件**/
8588
'./test-main-openlayers.js',
86-
{ pattern: './resources/data/**.fgb', included: false },
87-
{ pattern: './resources/img/**.svg', included: false },
8889
/***mapboxgl***/
8990
{ pattern: '../node_modules/mapbox-gl/dist/mapbox-gl.css', included: true },
9091
'../src/mapboxgl/**/!(index).js',

test/tool/mock_leaflet.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export function mockCreateTile() {
1111
}
1212
tile.alt = '';
1313
tile.setAttribute('role', 'presentation');
14+
tile.src = 'base/resources/img/baiduTileTest.png';
1415
this.getTileUrl(coords);
1516
return tile;
1617
};

0 commit comments

Comments
 (0)