@@ -204,9 +204,9 @@ describe('heatmap calc', function() {
204
204
jasmine . addMatchers ( customMatchers ) ;
205
205
} ) ;
206
206
207
- function _calc ( trace ) {
207
+ function _calc ( opts ) {
208
208
var base = { type : 'heatmap' } ,
209
- trace = Lib . extendFlat ( { } , base , trace ) ,
209
+ trace = Lib . extendFlat ( { } , base , opts ) ,
210
210
gd = { data : [ trace ] } ;
211
211
212
212
Plots . supplyDefaults ( gd ) ;
@@ -221,7 +221,7 @@ describe('heatmap calc', function() {
221
221
} ) ;
222
222
223
223
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 ] ) ;
225
225
expect ( out . z ) . toBeCloseTo2DArray ( [ [ 1 , 2 , 3 ] , [ 3 , 1 , 2 ] ] ) ;
226
226
} ) ;
227
227
@@ -283,7 +283,7 @@ describe('heatmap calc', function() {
283
283
} ) ;
284
284
285
285
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 ] ) ;
287
287
expect ( out . z ) . toBeCloseTo2DArray ( [ [ 1 , 2 , 3 ] , [ 3 , 1 , 2 ] ] ) ;
288
288
} ) ;
289
289
@@ -294,8 +294,8 @@ describe('heatmap calc', function() {
294
294
z : [ [ 1 , 2 , 3 ] , [ 3 , 1 , 2 ] ]
295
295
} ) ;
296
296
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 ] ) ;
299
299
expect ( out . z ) . toBeCloseTo2DArray ( [ [ 1 , 2 , 3 ] , [ 3 , 1 , 2 ] ] ) ;
300
300
} ) ;
301
301
} ) ;
0 commit comments