Skip to content

Commit 8495512

Browse files
author
Fares Bakhet
committed
Editing sum.test.js file
1 parent 89e0e23 commit 8495512

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
@@ -35,7 +35,7 @@ test("given an array containing negative numbers, returns the correct total sum"
3535
// When passed to the sum function
3636
// Then it should return the correct total sum
3737
test("given an array with decimal numbers, returns the correct total sum", () => {
38-
expect(sum([1.5, 2.5, 3.5])).toBe(7.5);
38+
expect(sum([1.5, 2.5, 3.5])).toBeCloseTo(7.5);
3939
});
4040

4141
// Given an array containing non-number values

0 commit comments

Comments
 (0)