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 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" ,
Original file line number Diff line number Diff 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" ) ;
You can’t perform that action at this time.
0 commit comments