toHaveProperty
Asserts that the value is an object that doesn’t include given property.
toHaveProperty(propertyName: string): Assertion<unknown>
Related
- class NegatedAssertionRepresents a value ready to be asserted, using inverse logic.
- toHaveProperty(propertyName)Asserts that the value is an object that includes a property with given name (using the
in
operator).