Skip to content

Commit b7eece4

Browse files
committed
update test for contains
1 parent 630e1c1 commit b7eece4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ test("return false if property is non-existent", () => {
4242
// Given invalid parameters like an array
4343
// When passed to contains
4444
// Then it should return false or throw an error
45-
test("return false if it's not an object", () => {
46-
expect(contains([], 6)).toBe(false);
45+
test("return false if it's an array", () => {
46+
expect(contains(["apple", "banana"], "0")).toBe(false);
4747
});

0 commit comments

Comments
 (0)