File tree 2 files changed +4
-5
lines changed
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) {
146
146
var width = clonedGd . _fullLayout . width ;
147
147
var height = clonedGd . _fullLayout . height ;
148
148
149
- Plotly . purge ( clonedGd )
150
- document . body . removeChild ( clonedGd )
149
+ Plotly . purge ( clonedGd ) ;
150
+ document . body . removeChild ( clonedGd ) ;
151
151
152
152
if ( format === 'svg' ) {
153
153
if ( imageDataOnly ) {
@@ -173,7 +173,7 @@ function toImage(gd, opts) {
173
173
promise : true
174
174
} )
175
175
. then ( resolve )
176
- . catch ( reject )
176
+ . catch ( reject ) ;
177
177
} ) ;
178
178
}
179
179
Original file line number Diff line number Diff line change 1
1
var Plotly = require ( '@lib' ) ;
2
2
var Lib = require ( '@src/lib' ) ;
3
3
4
- var d3 = require ( 'd3' ) ;
5
4
var createGraphDiv = require ( '../assets/create_graph_div' ) ;
6
5
var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
7
6
var fail = require ( '../assets/fail_test' ) ;
@@ -21,7 +20,7 @@ describe('Plotly.toImage', function() {
21
20
gd = createGraphDiv ( ) ;
22
21
} ) ;
23
22
24
- afterEach ( destroyGraphDiv )
23
+ afterEach ( destroyGraphDiv ) ;
25
24
26
25
function createImage ( url ) {
27
26
return new Promise ( function ( resolve , reject ) {
You can’t perform that action at this time.
0 commit comments