@rbxts/expect > Assertion > substring
Assertion.substring() method
Asserts that the string value contains the string str
.
Signature:
substring(str: string): Assertion<T>;
Parameters
Parameter | Type | Description |
---|---|---|
str | string | A string that should be within the value. |
Returns:
Assertion<T>
Example
expect("daymon").to.have.the.substring("day");