Skip to content

Commit cd0ce39

Browse files
test: add invalid input cases for contains
1 parent e6024c1 commit cd0ce39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Sprint-2/implement/contains.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ test("returns false when the property doesn't exist", () => {
4242
// When passed to contains
4343
// Then it should return false or throw an error
4444
test("returns false for invalid input types", () => {
45-
expect(contains([1, 2, 3], "propertyName")).toBe(false);
45+
expect(contains([1, 2, 3], "0")).toBe(false);
4646
});

0 commit comments

Comments
 (0)