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