File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ function toImage(gd, opts) {
146146 var width = clonedGd . _fullLayout . width ;
147147 var height = clonedGd . _fullLayout . height ;
148148
149- Plotly . purge ( clonedGd )
150- document . body . removeChild ( clonedGd )
149+ Plotly . purge ( clonedGd ) ;
150+ document . body . removeChild ( clonedGd ) ;
151151
152152 if ( format === 'svg' ) {
153153 if ( imageDataOnly ) {
@@ -173,7 +173,7 @@ function toImage(gd, opts) {
173173 promise : true
174174 } )
175175 . then ( resolve )
176- . catch ( reject )
176+ . catch ( reject ) ;
177177 } ) ;
178178 }
179179
Original file line number Diff line number Diff line change 11var Plotly = require ( '@lib' ) ;
22var Lib = require ( '@src/lib' ) ;
33
4- var d3 = require ( 'd3' ) ;
54var createGraphDiv = require ( '../assets/create_graph_div' ) ;
65var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
76var fail = require ( '../assets/fail_test' ) ;
@@ -21,7 +20,7 @@ describe('Plotly.toImage', function() {
2120 gd = createGraphDiv ( ) ;
2221 } ) ;
2322
24- afterEach ( destroyGraphDiv )
23+ afterEach ( destroyGraphDiv ) ;
2524
2625 function createImage ( url ) {
2726 return new Promise ( function ( resolve , reject ) {
You can’t perform that action at this time.
0 commit comments