@rbxts/expect > Assertion > greaterThanOrEqualTo
Assertion.greaterThanOrEqualTo() method
Asserts that the value is greater than or equal to value
.
Signature:
greaterThanOrEqualTo(value: number): Assertion<number>;
Parameters
Parameter | Type | Description |
---|---|---|
value | number | A number that the actual value should be greater than or equal to. |
Returns:
Assertion<number>
Example
expect(5).to.be.greaterThanOrEqualTo(4);
expect(2).to.be.greaterThanOrEqualTo(2);