Skip to main content

@rbxts/expect > ExpectMessageBuilder > toString

ExpectMessageBuilder.toString() method​

Returns a built copy of this message, assuming it passed and was NOT negated.

Signature:

toString(): string;

Returns:

string

Remarks​

Primarily provided for debugging cases.

Example​

return message.toString();

// is the same as:
return message.build(true, false);