File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -504,22 +504,22 @@ describe('Plotly.___ methods', function() {
504
504
destroyGraphDiv ( ) ;
505
505
506
506
resizePromise
507
- . catch ( failTest )
508
- . then ( done ) ;
507
+ . catch ( failTest )
508
+ . then ( done ) ;
509
509
} ) ;
510
510
511
511
it ( 'should return a resolved promise and purge plotly attributes' , function ( done ) {
512
512
Plotly . Plots . resize ( initialDiv )
513
- . then ( function ( gd ) {
514
- Plotly . purge ( gd ) ;
515
- destroyGraphDiv ( ) ;
516
-
517
- expect ( gd ) . toBeDefined ( ) ;
518
- expect ( typeof gd ) . toBe ( 'object' ) ;
519
- expect ( gd . layout ) . toBeUndefined ( ) ;
520
- } )
521
- . catch ( failTest )
522
- . then ( done ) ;
513
+ . then ( function ( gd ) {
514
+ Plotly . purge ( gd ) ;
515
+ destroyGraphDiv ( ) ;
516
+
517
+ expect ( gd ) . toBeDefined ( ) ;
518
+ expect ( typeof gd ) . toBe ( 'object' ) ;
519
+ expect ( gd . layout ) . toBeUndefined ( ) ;
520
+ } )
521
+ . catch ( failTest )
522
+ . then ( done ) ;
523
523
} ) ;
524
524
525
525
it ( 'errors before even generating a promise if gd is not defined' , function ( ) {
You can’t perform that action at this time.
0 commit comments