Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrzn committed Feb 22, 2024
1 parent 465ba7c commit 9526ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/utils/distributeWeights.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
})
Expand Down

0 comments on commit 9526ea2

Please sign in to comment.