Skip to main content

@rbxts/expect > Assertion > string

Assertion.string() method

Asserts that the value is a string.

Signature:

string(): Assertion<string>;

Returns:

Assertion<string>

Remarks

Just a wrapper around , but with the string type provided automatically.

Example

expect("daymon").to.be.a.string();