Skip to main content

@rbxts/expect > Assertion > greaterThan

Assertion.greaterThan() method

Asserts that the value is greater than value.

Signature:

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

Parameters

Parameter

Type

Description

value

number

A number that the actual value should be greater than.

Returns:

Assertion<number>

Example

expect(5).to.be.greaterThan(4);