Jest · Matcher
toBeLessThanOrEqual
toBeLessThanOrEqual checks that a received number or BigInt is less than or equal to an expected value. Use it for inclusive upper limits.
Last updated
Syntax
expect(received).toBeLessThanOrEqual(expected)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
toBeLessThantoBeGreaterThanOrEqualtoBeLessThanOrEqualtoBeCloseToexpect(value)