Skip to content

Commit c99094d

Browse files
committed
【fix】修复UT环境内css的不起作用的问题
1 parent 1bf148f commit c99094d

File tree

3 files changed

+209
-223
lines changed

3 files changed

+209
-223
lines changed

test/karma.conf.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,22 @@ module.exports = function (config) {
7171

7272
/***leaflet的源码***/
7373
{ pattern: './libs/workers/TurfWorkerForTest.js', included: false },
74-
{ pattern: '../node_modules/leaflet/dist/leaflet.css', included: false },
75-
{ pattern: '../src/leaflet/**/**/*.css', included: false },
74+
{ pattern: '../node_modules/leaflet/dist/leaflet.css', included: true },
75+
{ pattern: '../src/leaflet/**/**/*.css', included: true },
7676
'../src/leaflet/**/!(index).js',
7777
/**测试文件**/
7878
'./test-main-leaflet.js',
7979

8080
/***openlayers的源码***/
81-
{ pattern: '../node_modules/ol/ol.css', included: false },
82-
{ pattern: '../src/openlayers/**/**/*.css', included: false },
81+
{ pattern: '../node_modules/ol/ol.css', included: true },
82+
{ pattern: '../src/openlayers/**/**/*.css', included: true },
8383
'../src/openlayers/**/!(index).js',
8484
/**测试文件**/
8585
'./test-main-openlayers.js',
8686
{ pattern: './resources/data/**.fgb', included: false },
8787
{ pattern: './resources/img/**.svg', included: false },
8888
/***mapboxgl***/
89-
{ pattern: '../node_modules/mapbox-gl/dist/mapbox-gl.css', included: false },
89+
{ pattern: '../node_modules/mapbox-gl/dist/mapbox-gl.css', included: true },
9090
'../src/mapboxgl/**/!(index).js',
9191
/**测试文件**/
9292
'./test-main-mapboxgl.js'

0 commit comments

Comments
 (0)