File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1018,7 +1018,7 @@ describe('A funnel plot', function() {
1018
1018
. then ( done ) ;
1019
1019
} ) ;
1020
1020
1021
- it ( 'should be able to deal with blank bars on transform ' , function ( done ) {
1021
+ it ( 'should be able to deal with transform that empty out the data coordinate arrays ' , function ( done ) {
1022
1022
Plotly . plot ( gd , {
1023
1023
data : [ {
1024
1024
type : 'funnel' ,
@@ -1038,14 +1038,11 @@ describe('A funnel plot', function() {
1038
1038
} )
1039
1039
. then ( function ( ) {
1040
1040
var traceNodes = getAllTraceNodes ( gd ) ;
1041
- var funnelNodes = getAllFunnelNodes ( traceNodes [ 0 ] ) ;
1042
- var pathNode = funnelNodes [ 0 ] . querySelector ( 'path' ) ;
1041
+ expect ( traceNodes . length ) . toBe ( 0 ) ;
1043
1042
1044
1043
expect ( gd . calcdata [ 0 ] [ 0 ] . x ) . toEqual ( NaN ) ;
1045
1044
expect ( gd . calcdata [ 0 ] [ 0 ] . y ) . toEqual ( NaN ) ;
1046
- expect ( gd . calcdata [ 0 ] [ 0 ] . isBlank ) . toBe ( true ) ;
1047
-
1048
- expect ( pathNode . outerHTML ) . toEqual ( '<path d="M0,0Z" style="vector-effect: non-scaling-stroke;"></path>' ) ;
1045
+ expect ( gd . calcdata [ 0 ] [ 0 ] . isBlank ) . toBe ( undefined ) ;
1049
1046
} )
1050
1047
. catch ( failTest )
1051
1048
. then ( done ) ;
You can’t perform that action at this time.
0 commit comments