@rbxts/expect > Assertion > pattern
Assertion.pattern() method
Asserts that the expectedValue
is a string that contains a match for the provided lua pattern
.
Signature:
pattern(pattern: string): this;
Parameters
Parameter | Type | Description |
---|---|---|
pattern | string | A roblox string pattern that the actual string should have a valid match for. |
Returns:
this
Example
expect("Daymon").to.have.the.pattern("^%u");