Skip to content

Commit 4b9ea66

Browse files
committed
Update max function test to include string representation of numbers
1 parent 21c4d2a commit 4b9ea66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Sprint-1/implement/max.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test("given an array with decimal numbers, return the largest decimal number", (
5353
// When passed to the max function
5454
// Then it should return the max and ignore non-numeric values
5555
test("given an array with non-number values, return the max and ignore the non-numerical values", () => {
56-
expect(findMax(["boy", 2, "hi", 20, 24])).toBe(24);
56+
expect(findMax(["boy", 2, "hi", 20, "120", 24])).toBe(24);
5757
});
5858

5959
// Given an array with only non-number values

0 commit comments

Comments
 (0)