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() {
514514 title : 'frame A'
515515 } ,
516516 name : 'A'
517- } ,
518- null ,
519- {
517+ } , null , {
520518 data : [ {
521519 y : [ 1 , 2 , 3 ] ,
522520 } ] ,
523521 layout : {
524522 title : 'frame B'
525523 } ,
526524 name : 'B'
525+ } , {
526+ data : [ null , false , undefined ] ,
527+ layout : 'garbage' ,
528+ name : 'garbage'
527529 } ]
528530 } ;
529531
@@ -535,6 +537,11 @@ describe('Test Plots', function() {
535537 expect ( obj . layout ) . toEqual ( mock . layout ) ;
536538 expect ( obj . frames [ 0 ] ) . toEqual ( mock . frames [ 0 ] ) ;
537539 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+ } ) ;
538545 } )
539546 . then ( function ( ) {
540547 destroyGraphDiv ( ) ;
You can’t perform that action at this time.
0 commit comments