From 0fb9d86b1fc5920e62d313356887f3e4e3e2b37f Mon Sep 17 00:00:00 2001 From: ethanrdsch Date: Mon, 6 Nov 2023 13:27:28 -0500 Subject: [PATCH] actually fix tests --- frontend/src/DataProcessor.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/DataProcessor.test.ts b/frontend/src/DataProcessor.test.ts index 64b035b..b7d06f5 100644 --- a/frontend/src/DataProcessor.test.ts +++ b/frontend/src/DataProcessor.test.ts @@ -28,7 +28,7 @@ const DATA_2 = Map([ ]) const DATA_3 = Map([ [ - 2, + 3, [ [0, 0], [1, 1], @@ -106,10 +106,10 @@ test('it returns two datasets, normalized then averaged, if they are both select ).toEqual( Map([ [0, 0], - [1, 0.5], + [1, 0.625], [2, 0.375], [3, 0.625], - [4, 0.75], + [4, 0.875], ]) ) }) @@ -161,10 +161,10 @@ test('it weights datasets when normalizing', () => { ).toEqual( Map([ [0, 0], - [1, 0.75], - [2, 0.125], - [3, 0.625], - [4, 0.75], + [1, 0.8125], + [2, 0.3125], + [3, 0.5625], + [4, 0.8125], ]) ) })