Skip to main content

@rbxts/expect > Assertion > lessThanOrEqualTo

Assertion.lessThanOrEqualTo() method

Asserts that the value is less than or equal to value.

Signature:

lessThanOrEqualTo(value: number): Assertion<number>;

Parameters

Parameter

Type

Description

value

number

A number that the actual value should be less than or equal to.

Returns:

Assertion<number>

Example

expect(4).to.be.lessThanOrEqualTo(5);
expect(2).to.be.lessThanOrEqualTo(2);