toBeTypeOf
Asserts that the value is not of given type.
toBeTypeOf(typeStr: string): void
Example
// this succeeds:
expect(3).not.toBeTypeOf("string");
Related
- class NegatedAssertionRepresents a value ready to be asserted, using inverse logic.
Asserts that the value is not of given type.
toBeTypeOf(typeStr: string): void
// this succeeds:
expect(3).not.toBeTypeOf("string");