@rbxts/expect > Assertion > satisfies
Assertion.satisfies() method
Asserts that the value returns true for the given filter
.
Signature:
satisfies(filter: Filter<T>): this;
Parameters
Parameter | Type | Description |
---|---|---|
filter | Filter<T> | Callback that returns true if the value passes. |
Returns:
this
This instance for chaining.
Remarks
Type alias for satisfy.
Example
expect(5).to.be.a.number().that.satisfies((it) => it >= 0);