Skip to main content

@rbxts/expect > ActualPlaceholder > value

ActualPlaceholder.value property

The "actual" value in an expect() statement, which can optionally be collapsed.

Signature:

value: string;

Remarks

This is the value of the actual variable.

Keep in mind that this value respects the defined collapseLength.

If you don't want it to respect the collapse length, then use fullValue instead.

Example

Given the following assertion chain:

expect(5).to.equal(6);

The value 5 is the "actual" value.