Skip to main content

@rbxts/expect > Assertion > value

Assertion.value property

The "actual" value attached to this expect() call.

Signature:

readonly value: T;

Remarks

Whatever argument was passed into expect() is represented as the "actual" value of the assertion, and stored here.

In the case of a Proxy, the inner value of the proxy is stored here instead.

Example

expect(5).to.not.equal(4); // value === 5