@@ -84,7 +84,7 @@ describe('Test animate API', function() {
84
84
} ) ;
85
85
86
86
Plotly . plot ( gd , mockCopy . data , mockCopy . layout ) . then ( function ( ) {
87
- Plotly . addFrames ( gd , mockCopy . frames ) ;
87
+ return Plotly . addFrames ( gd , mockCopy . frames ) ;
88
88
} ) . then ( done ) ;
89
89
} ) ;
90
90
@@ -470,7 +470,7 @@ describe('animation with non-mocked transitions', function() {
470
470
mockCopy = Lib . extendDeep ( { } , mock ) ;
471
471
472
472
Plotly . plot ( gd , mockCopy . data , mockCopy . layout ) . then ( function ( ) {
473
- Plotly . addFrames ( gd , mockCopy . frames ) ;
473
+ return Plotly . addFrames ( gd , mockCopy . frames ) ;
474
474
} ) . then ( done ) ;
475
475
} ) ;
476
476
@@ -501,8 +501,8 @@ describe('animation with non-mocked transitions', function() {
501
501
return Plotly . animate ( gd , [ {
502
502
data : [ { 'transforms[0].operation' : '>' } ]
503
503
} ] , {
504
- frame : { redraw : true , duration : 100 } ,
505
- transition : { duration : 100 }
504
+ frame : { redraw : true , duration : 0 } ,
505
+ transition : { duration : 0 }
506
506
} ) ;
507
507
} ) . then ( function ( ) {
508
508
expect ( gd . _fullData [ 0 ] . transforms ) . toEqual ( [ {
0 commit comments