Skip to main content

@rbxts/expect > Assertion > defined

Assertion.defined() method

Asserts that the actual value is a non null value.

Signature:

defined(): this;

Returns:

this

Example

expect("Daymon").to.be.defined();