@rbxts/expect > Assertion > most
Assertion.most() method
Asserts that the value is less than or equal to value
.
Signature:
most(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>
Remarks
Type alias for lessThanOrEqualTo.
Example
expect(4).to.be.at.most(5);
expect(2).to.be.at.most(2);