toBeLessThanOrEqual

Bun

Symbol

Matchers.toBeLessThanOrEqual

toBeLessThanOrEqual(expected: number | bigint): void

Asserts that a value is a number and is less than or equal to the expected value.

@param expected

the expected number

expect(-1).toBeLessThanOrEqual(0);
expect(3).toBeLessThanOrEqual(3.14);
expect(9).toBeLessThanOrEqual(9);