toBeGreaterThan(expectedValue) is a comparison function that evaluates to true or false. It must be called in the chain after the t.expect(value) or .and(value).
toBeGreaterThan is equivalent to received > expected
When toBeGreaterThan(expectedValue) evaluates to false, the chain is broken, and the test is marked as failed. When the chain is broken, further checks inside of the test are omitted.
Parameter | Type | Description |
---|---|---|
expectedValue | any | The expected value |
Returns
Type | Description |
---|---|
Funk | Funk object |