not
Evaluates to a new negated assertion, where all methods mean the opposite of those on the current instance.
readonly
get not(): NegatedAssertion<T>
Example
// these are the same:
expect(1).toBeLessThan(2);
expect(1).not.toBeGreaterThanOrEqualTo(2);
Related
- class AssertionRepresents a value ready to be asserted.
- class NegatedAssertionRepresents a value ready to be asserted, using inverse logic.