Skip to content

Commit a55bc61

Browse files
committed
fix sum test error
1 parent c4200ce commit a55bc61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sprint-1/implement/sum.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test("should return correct sum for negative and positive numbers", () =>
3232
// Then it should return the correct total sum
3333

3434
// use toBeCloseTo to account for floating point
35-
test("should sum floats", () => expect(sum([0.1 + 0.2])).toBeCloseTo(0.3));
35+
test("should sum floats", () => expect(sum([0.1, 0.2])).toBeCloseTo(0.3));
3636

3737
// Given an array containing non-number values
3838
// When passed to the sum function

0 commit comments

Comments
 (0)