Skip to content

Commit fb46c74

Browse files
committed
update test to correct fail given an invalid parameter
1 parent 42a2aae commit fb46c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sprint-2/implement/contains.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test("given an object with a non-existent property name, it should return false"
5555
// Then it should return false or throw an error
5656
test("given an invalid parameters, it should return false or throw an error", () => {
5757
const input = ['a', 'b', 'c'];
58-
const target = 'a'
58+
const target = 0;
5959
expect(() => contains(input, target)).toThrow();
6060

6161
});

0 commit comments

Comments
 (0)