@@ -84,7 +84,7 @@ describe('Test animate API', function() {
8484 } ) ;
8585
8686 Plotly . plot ( gd , mockCopy . data , mockCopy . layout ) . then ( function ( ) {
87- Plotly . addFrames ( gd , mockCopy . frames ) ;
87+ return Plotly . addFrames ( gd , mockCopy . frames ) ;
8888 } ) . then ( done ) ;
8989 } ) ;
9090
@@ -470,7 +470,7 @@ describe('animation with non-mocked transitions', function() {
470470 mockCopy = Lib . extendDeep ( { } , mock ) ;
471471
472472 Plotly . plot ( gd , mockCopy . data , mockCopy . layout ) . then ( function ( ) {
473- Plotly . addFrames ( gd , mockCopy . frames ) ;
473+ return Plotly . addFrames ( gd , mockCopy . frames ) ;
474474 } ) . then ( done ) ;
475475 } ) ;
476476
@@ -501,8 +501,8 @@ describe('animation with non-mocked transitions', function() {
501501 return Plotly . animate ( gd , [ {
502502 data : [ { 'transforms[0].operation' : '>' } ]
503503 } ] , {
504- frame : { redraw : true , duration : 100 } ,
505- transition : { duration : 100 }
504+ frame : { redraw : true , duration : 0 } ,
505+ transition : { duration : 0 }
506506 } ) ;
507507 } ) . then ( function ( ) {
508508 expect ( gd . _fullData [ 0 ] . transforms ) . toEqual ( [ {
0 commit comments