@@ -204,9 +204,9 @@ describe('heatmap calc', function() {
204204 jasmine . addMatchers ( customMatchers ) ;
205205 } ) ;
206206
207- function _calc ( trace ) {
207+ function _calc ( opts ) {
208208 var base = { type : 'heatmap' } ,
209- trace = Lib . extendFlat ( { } , base , trace ) ,
209+ trace = Lib . extendFlat ( { } , base , opts ) ,
210210 gd = { data : [ trace ] } ;
211211
212212 Plots . supplyDefaults ( gd ) ;
@@ -221,7 +221,7 @@ describe('heatmap calc', function() {
221221 } ) ;
222222
223223 expect ( out . x ) . toBeCloseToArray ( [ - 0.5 , 0.5 , 1.5 , 2.5 ] ) ;
224- expect ( out . y ) . toBeCloseToArray ( [ - 0.5 , 0.5 , 1.5 , 2.5 ] ) ;
224+ expect ( out . y ) . toBeCloseToArray ( [ - 0.5 , 0.5 , 1.5 ] ) ;
225225 expect ( out . z ) . toBeCloseTo2DArray ( [ [ 1 , 2 , 3 ] , [ 3 , 1 , 2 ] ] ) ;
226226 } ) ;
227227
@@ -283,7 +283,7 @@ describe('heatmap calc', function() {
283283 } ) ;
284284
285285 expect ( out . x ) . toBeCloseToArray ( [ 1.5 , 2.5 , 3.5 , 4.5 ] ) ;
286- expect ( out . y ) . toBeCloseToArray ( [ 2.5 , 3.5 , 4.5 , 5.5 ] ) ;
286+ expect ( out . y ) . toBeCloseToArray ( [ 2.5 , 3.5 , 4.5 ] ) ;
287287 expect ( out . z ) . toBeCloseTo2DArray ( [ [ 1 , 2 , 3 ] , [ 3 , 1 , 2 ] ] ) ;
288288 } ) ;
289289
@@ -294,8 +294,8 @@ describe('heatmap calc', function() {
294294 z : [ [ 1 , 2 , 3 ] , [ 3 , 1 , 2 ] ]
295295 } ) ;
296296
297- expect ( out . x ) . toBeCloseToArray ( [ - 0.5 , 0.5 , 1.5 , 2.5 , 3.5 ] ) ;
298- expect ( out . y ) . toBeCloseToArray ( [ - 0.5 , 0.5 , 1.5 , 2.5 ] ) ;
297+ expect ( out . x ) . toBeCloseToArray ( [ - 0.5 , 0.5 , 1.5 , 2.5 ] ) ;
298+ expect ( out . y ) . toBeCloseToArray ( [ - 0.5 , 0.5 , 1.5 ] ) ;
299299 expect ( out . z ) . toBeCloseTo2DArray ( [ [ 1 , 2 , 3 ] , [ 3 , 1 , 2 ] ] ) ;
300300 } ) ;
301301} ) ;
0 commit comments