File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -430,13 +430,15 @@ describe('annotations relayout', function() {
430
430
{ 'annotations[0]' : 'not an object' } ,
431
431
{ 'annotations[100]' : { text : 'bad index' } }
432
432
] . forEach ( function ( update ) {
433
- it ( 'warns on ambiguous combinations and invalid values: ' + JSON . stringify ( update ) , function ( ) {
433
+ it ( 'warns on ambiguous combinations and invalid values: ' + JSON . stringify ( update ) , function ( done ) {
434
434
Plotly . relayout ( gd , update )
435
435
. then ( function ( ) {
436
436
expect ( Loggers . warn ) . toHaveBeenCalled ( ) ;
437
437
// we could test the results here, but they're ambiguous and/or undefined so why bother?
438
438
// the important thing is the developer is warned that something went wrong.
439
- } ) ;
439
+ } )
440
+ . catch ( failTest )
441
+ . then ( done ) ;
440
442
} ) ;
441
443
} ) ;
442
444
@@ -510,7 +512,7 @@ describe('annotations log/linear axis changes', function() {
510
512
var mockData = Lib . extendDeep ( [ ] , mock . data ) ;
511
513
var mockLayout = Lib . extendDeep ( { } , mock . layout ) ;
512
514
513
- return Plotly . plot ( gd , mockData , mockLayout ) . then ( done ) ;
515
+ Plotly . plot ( gd , mockData , mockLayout ) . then ( done ) ;
514
516
} ) ;
515
517
516
518
afterEach ( destroyGraphDiv ) ;
You can’t perform that action at this time.
0 commit comments