Skip to content

Commit cd57eff

Browse files
committed
correct heatmap geomean test
1 parent 42f0c1f commit cd57eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jasmine/tests/calcdata_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ describe('calculated data and points', function() {
11651165
// TODO: how to actually calc these? what do these even mean?
11661166
if(type === 'histogram') expectedAgg = [['a', 2], ['b', 1], ['c', 1]];
11671167
if(type === 'histogram2d') expectedAgg = [['a', 2 / 3], ['b', 1 / 3], ['c', 1 / 3]];
1168-
if(type === 'contour' || type === 'heatmap') expectedAgg = [['a', expectedAgg[0][1] / 3], ['b', expectedAgg[1][1] / 3], ['c', expectedAgg[2][1] / 3]];
1168+
if(type === 'contour' || type === 'heatmap') expectedAgg = [['a', Math.pow(expectedAgg[0][1], 1 / 3)], ['b', Math.pow(expectedAgg[1][1], 1 / 3)], ['c', Math.pow(expectedAgg[2][1], 1 / 3)]];
11691169
if(type === 'histogram2dcontour') expectedAgg = [['a', 2 / 4], ['b', 1 / 4], ['c', 1 / 4]];
11701170

11711171
checkAggregatedValue(baseMock, expectedAgg, false, done);

0 commit comments

Comments
 (0)