@rbxts/expect > Assertion > object
Assertion.object() method
Asserts that the value is a table.
Signature:
object(): Assertion<object>;
Returns:
Assertion<object>
Remarks
Just a wrapper around , but with the table
type provided automatically.
Type alias for table.
Example
expect({ age: 5 }).to.be.an.object();