Skip to content

Commit

Permalink
Use .toHaveProperty to check for property (#16296)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 21, 2024
1 parent e31b26e commit 458937c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ class E {}

expect(Object.getPrototypeOf(E)).toBe(Function.prototype);
expect(Object.getPrototypeOf(E.prototype)).toBe(Object.prototype);
expect(E).not.toContain('keys');
expect(E).not.toHaveProperty('keys');

0 comments on commit 458937c

Please sign in to comment.