File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -514,16 +514,18 @@ describe('Test Plots', function() {
514
514
title : 'frame A'
515
515
} ,
516
516
name : 'A'
517
- } ,
518
- null ,
519
- {
517
+ } , null , {
520
518
data : [ {
521
519
y : [ 1 , 2 , 3 ] ,
522
520
} ] ,
523
521
layout : {
524
522
title : 'frame B'
525
523
} ,
526
524
name : 'B'
525
+ } , {
526
+ data : [ null , false , undefined ] ,
527
+ layout : 'garbage' ,
528
+ name : 'garbage'
527
529
} ]
528
530
} ;
529
531
@@ -535,6 +537,11 @@ describe('Test Plots', function() {
535
537
expect ( obj . layout ) . toEqual ( mock . layout ) ;
536
538
expect ( obj . frames [ 0 ] ) . toEqual ( mock . frames [ 0 ] ) ;
537
539
expect ( obj . frames [ 1 ] ) . toEqual ( mock . frames [ 2 ] ) ;
540
+ expect ( obj . frames [ 2 ] ) . toEqual ( {
541
+ data : [ null , false , null ] ,
542
+ layout : 'garbage' ,
543
+ name : 'garbage'
544
+ } ) ;
538
545
} )
539
546
. then ( function ( ) {
540
547
destroyGraphDiv ( ) ;
You can’t perform that action at this time.
0 commit comments