Skip to content

Commit d0788b8

Browse files
committed
fixed the test for given an array as input return false.
1 parent 2bc209b commit d0788b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sprint-2/implement/contains.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ test("contains on an array returns false", () => {
4848
test("contains on an array of length returns true", () => {
4949
expect(contains([1, 2, 3, 4], "length")).toBe(true);
5050
}); // the test returns true because 'length' is a property of the array object
51+
52+
test("contains given on array as input return false", () => {
53+
expect(contains([1, 2, 3], "a")).toBe(false);
54+
});

0 commit comments

Comments
 (0)