From e49fd0880c328513ca2f6e8e006e89a86a3ec0cd Mon Sep 17 00:00:00 2001 From: acxz <17132214+acxz@users.noreply.github.com> Date: Fri, 8 Jul 2022 13:46:28 -0400 Subject: [PATCH] update calc_data tests --- test/jasmine/tests/calcdata_test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/jasmine/tests/calcdata_test.js b/test/jasmine/tests/calcdata_test.js index 01ff0c61d4f..517a583f576 100644 --- a/test/jasmine/tests/calcdata_test.js +++ b/test/jasmine/tests/calcdata_test.js @@ -1164,9 +1164,9 @@ describe('calculated data and points', function() { var expectedAgg = [['a', Math.sqrt(data[0] * data2[0])], ['b', Math.sqrt(data[1] * data2[1])], ['c', Math.sqrt(data[2] * data2[2])]]; // TODO: how to actually calc these? what do these even mean? if(type === 'histogram') expectedAgg = [['a', 2], ['b', 1], ['c', 1]]; - if(type === 'histogram2d') expectedAgg = [['a', 2 / 3], ['b', 1 / 3], ['c', 1 / 3]]; - 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)]]; - if(type === 'histogram2dcontour') expectedAgg = [['a', 2 / 4], ['b', 1 / 4], ['c', 1 / 4]]; + if(type === 'histogram2d') expectedAgg = [['a', 0], ['b', 0], ['c', 0]]; + if(type === 'contour' || type === 'heatmap') expectedAgg = [['a', 0], ['b', 0], ['c', 0]]; + if(type === 'histogram2dcontour') expectedAgg = [['a', 0], ['b', 0], ['c', 0]]; checkAggregatedValue(baseMock, expectedAgg, false, done); });