Skip to content

Commit 6563cf2

Browse files
committed
Improve contains test
1 parent 2b84a9b commit 6563cf2

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
@@ -40,11 +40,11 @@ test("contains on empty object returns false", () => {
4040
// Given invalid parameters like an array
4141
// When passed to contains
4242
// Then it should return false or throw an error
43-
test("returns false for invalid parameters like an array", () => {
43+
test("returns false for invalid parameters", () => {
4444
const arr = ["apple", "banana"];
4545

4646
expect(contains(arr, "0")).toBe(false);
4747
expect(contains(null, "a")).toBe(false);
4848
expect(contains(123, "a")).toBe(false);
49-
expect(contains("hello", "a")).toBe(false);
49+
expect(contains("hello", "0")).toBe(false);
5050
});

0 commit comments

Comments
 (0)