File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -529,19 +529,19 @@ describe('Test colorbar:', function() {
529
529
return attrs ;
530
530
}
531
531
532
- var z = [ [ 1 , 10 ] , [ 100 , 1000 ] ] ;
532
+ var mock = require ( '../../image/mocks/contour_transposed' ) ;
533
+ var z = mock . data [ 0 ] . z ;
533
534
534
535
var expectedAttrs ;
535
536
var actualAttrs ;
536
537
537
- Plotly . newPlot ( gd , [ { type : 'contour' , z : z } ] )
538
+ Plotly . newPlot ( gd , mock )
538
539
. then ( function ( ) {
539
540
expectedAttrs = getCBFillAttributes ( ) ;
540
-
541
- return Plotly . newPlot ( gd , [ { type : 'heatmap' , z : z } ] )
542
- . then ( function ( ) {
543
- return Plotly . react ( gd , [ { type : 'contour' , z : z } ] ) ;
544
- } ) ;
541
+ return Plotly . newPlot ( gd , [ { type : 'heatmap' , z : z } ] ) ;
542
+ } )
543
+ . then ( function ( ) {
544
+ return Plotly . react ( gd , mock ) ;
545
545
} )
546
546
. then ( function ( ) {
547
547
actualAttrs = getCBFillAttributes ( ) ;
You can’t perform that action at this time.
0 commit comments