toBe(Greater|Less)Than
Compare values by their worth
This set of comparisons validate that a value is greater than, less than, or equal to another value. The following assertions are true.
These assertions also work with reference types when the @operator(">" | "<" | ">=" | "<=")
is used on a method in the class.
These methods are safe to use portably with jest
, provided they aren't used with reference types.
Last updated
Was this helpful?