From 9526ea227aefe9b1f0e473b97b1fcc508459eb91 Mon Sep 17 00:00:00 2001 From: Cesar Date: Fri, 23 Feb 2024 00:56:16 +0100 Subject: [PATCH] chore: fix test --- web/utils/distributeWeights.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/distributeWeights.test.ts b/web/utils/distributeWeights.test.ts index 8f4dbe60..7d70f079 100644 --- a/web/utils/distributeWeights.test.ts +++ b/web/utils/distributeWeights.test.ts @@ -42,7 +42,7 @@ describe("Distribute weights", () => { const newWeights = applyUserWeight(weights, [33.1, 0, 0, 0, 0, 0, 0, 0, 0], { percentage: 33.1, index: 0 }); const total = newWeights.reduce((acc, x) => acc + x); expect(newWeights[0]).toBe(33.1); - expect(newWeights[1]).toBe(11.982089552238806); + expect(newWeights[1]).toBe(11.9821); expect(newWeights[2]).toBe(0); expect(total.toFixed(0)).toBe("100"); })