File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
test/common/components/chart Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 32
32
"package" : " node ./build/pack.js" ,
33
33
"package-debug" : " node ./build/pack.js - debug" ,
34
34
"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 " ,
36
36
"exampletest" : " nightwatch --config ./examples-test/nightwatch.json" ,
37
37
"build-docs" : " npm run build-docs-leaflet&&npm run build-docs-openlayers&&npm run build-docs-mapboxgl&&npm run build-docs-classic" ,
38
38
"build-docs-leaflet" : " jsdoc -c ./build/jsdocs/leaflet/docs.json -R ./build/jsdocs/leaflet/index.md" ,
Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ describe('ChartView', () => {
33
33
}
34
34
var chartView = new ChartView ( "chart" , options ) ;
35
35
36
+ afterAll ( ( ) => {
37
+ if ( chartView . echart ) {
38
+ chartView . echart . clear ( ) ;
39
+ }
40
+ window . document . body . removeChild ( chartDiv ) ;
41
+ } ) ;
42
+
36
43
it ( 'constructor, _fillDataToView' , ( ) => {
37
44
expect ( chartView . domID ) . toBe ( "chart" ) ;
38
45
expect ( chartView . chartType ) . toBe ( "line" ) ;
You can’t perform that action at this time.
0 commit comments