Skip to content

Commit f3eebf0

Browse files
committed
【fix】优化测试命令,在ci跑测试时不autowatch。测试结束时删除穿件的节点
1 parent 0804128 commit f3eebf0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"package": "node ./build/pack.js",
3333
"package-debug": "node ./build/pack.js - debug",
3434
"test": "npm install ./src/common && karma start ./test/karma.conf.js",
35-
"citest": "npm install ./src/common && karma start ./test/karma.conf.js --single-run",
35+
"citest": "npm install ./src/common && karma start ./test/karma.conf.js --single-run --no-auto-watch",
3636
"exampletest": "nightwatch --config ./examples-test/nightwatch.json",
3737
"build-docs": "npm run build-docs-leaflet&&npm run build-docs-openlayers&&npm run build-docs-mapboxgl&&npm run build-docs-classic",
3838
"build-docs-leaflet": "jsdoc -c ./build/jsdocs/leaflet/docs.json -R ./build/jsdocs/leaflet/index.md",

test/common/components/chart/ChartViewSpec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ describe('ChartView', () => {
3333
}
3434
var chartView = new ChartView("chart", options);
3535

36+
afterAll(() => {
37+
if (chartView.echart) {
38+
chartView.echart.clear();
39+
}
40+
window.document.body.removeChild(chartDiv);
41+
});
42+
3643
it('constructor, _fillDataToView', () => {
3744
expect(chartView.domID).toBe("chart");
3845
expect(chartView.chartType).toBe("line");

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