Skip to main content

@rbxts/expect > Assertion > property

Assertion.property() method​

Asserts that the table has the property property.

Signature:

property(property: string): this;

Parameters​

Parameter

Type

Description

property

string

Name of the property that the table should have.

Returns:

this

This instance for chaining.

Remarks​

Type alias for key.

Example​

expect({ name: "Daymon" }).to.have.the.property("name");