File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -866,15 +866,14 @@ describe('calculated data and points', function() {
866
866
describe ( 'customdata' , function ( ) {
867
867
it ( 'should pass customdata to the calcdata points' , function ( ) {
868
868
Plotly . plot ( gd , [ {
869
- x : [ 0 , 1 , 2 , 3 ] ,
870
- y : [ 4 , 5 , 6 , 7 ] ,
871
- customdata : [ 'a' , 'b' , 'c' , 'd' ]
869
+ x : [ 0 , 1 , 3 ] ,
870
+ y : [ 4 , 5 , 7 ] ,
871
+ customdata : [ 'a' , 'b' , { foo : 'bar' } ]
872
872
} ] , { } ) ;
873
873
874
874
expect ( gd . calcdata [ 0 ] [ 0 ] ) . toEqual ( jasmine . objectContaining ( { data : 'a' } ) ) ;
875
875
expect ( gd . calcdata [ 0 ] [ 1 ] ) . toEqual ( jasmine . objectContaining ( { data : 'b' } ) ) ;
876
- expect ( gd . calcdata [ 0 ] [ 2 ] ) . toEqual ( jasmine . objectContaining ( { data : 'c' } ) ) ;
877
- expect ( gd . calcdata [ 0 ] [ 3 ] ) . toEqual ( jasmine . objectContaining ( { data : 'd' } ) ) ;
876
+ expect ( gd . calcdata [ 0 ] [ 2 ] ) . toEqual ( jasmine . objectContaining ( { data : { foo : 'bar' } } ) ) ;
878
877
} ) ;
879
878
} ) ;
880
879
} ) ;
You can’t perform that action at this time.
0 commit comments