File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 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() {
529529 return attrs ;
530530 }
531531
532- var z = [ [ 1 , 10 ] , [ 100 , 1000 ] ] ;
532+ var mock = require ( '../../image/mocks/contour_transposed' ) ;
533+ var z = mock . data [ 0 ] . z ;
533534
534535 var expectedAttrs ;
535536 var actualAttrs ;
536537
537- Plotly . newPlot ( gd , [ { type : 'contour' , z : z } ] )
538+ Plotly . newPlot ( gd , mock )
538539 . then ( function ( ) {
539540 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 ) ;
545545 } )
546546 . then ( function ( ) {
547547 actualAttrs = getCBFillAttributes ( ) ;
You can’t perform that action at this time.
0 commit comments