Skip to main content

@rbxts/expect > Assertion > table

Assertion.table() method

Asserts that the value is a table.

Signature:

table(): Assertion<object>;

Returns:

Assertion<object>

Remarks

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

Example

expect({ age: 5 }).to.be.a.table();