@rbxts/expect > Assertion > boolean
Assertion.boolean() method
Asserts that the value is a boolean.
Signature:
boolean(): Assertion<boolean>;
Returns:
Assertion<boolean>
Remarks
Just a wrapper around , but with the boolean
type provided automatically.
Example
expect(true).to.be.a.boolean();
expect(false).to.be.a.boolean();