Skip to content

Commit 57fab61

Browse files
committed
updated the array input test.
1 parent 6a6d255 commit 57fab61

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
@@ -46,7 +46,7 @@ test("given an object with properties, returns false when passed to contains wit
4646
// When passed to contains
4747
// Then it should return false or throw an error
4848
test("given invalid parameters (array), returns false or throws an error", () => {
49-
expect(contains(["gitName", "position"], "gitName")).toEqual(false);
49+
expect(contains(["gitName", "age", "position"], "cohort")).toEqual(false);
5050
});
5151

5252
test("given invalid parameters (like null or undefined), returns false or throws an error", () => {

0 commit comments

Comments
 (0)