Skip to content

Commit e6ff252

Browse files
authored
Add test cases for existing property names in contains
1 parent 720be29 commit e6ff252

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ as the object doesn't contains a key of 'c'
2929
// Then it should return true
3030
test("returns true when passed an existing property name", () => {
3131
const inputObj = { a: 1, b: 2 };
32+
expect(contains(inputObj, "a")).toBe(true);
33+
expect(contains(inputObj, "b")).toBe(true);
3234
});
3335

3436
// Given an object with properties

0 commit comments

Comments
 (0)