Class: ExpectationSet
August 8, 2026 ยท View on GitHub
@plures/praxis / index / ExpectationSet
Class: ExpectationSet
Defined in: src/expectations/expectations.ts:87
A collection of expectations for a specific domain.
Constructors
Constructor
new ExpectationSet(
options):ExpectationSet
Defined in: src/expectations/expectations.ts:92
Parameters
options
Returns
ExpectationSet
Properties
description
readonlydescription:string
Defined in: src/expectations/expectations.ts:89
name
readonlyname:string
Defined in: src/expectations/expectations.ts:88
Accessors
expectations
Get Signature
get expectations(): readonly
Expectation[]
Defined in: src/expectations/expectations.ts:104
Get all expectations in this set.
Returns
readonly Expectation[]
size
Get Signature
get size():
number
Defined in: src/expectations/expectations.ts:109
Number of expectations.
Returns
number
Methods
add()
add(
expectation):this
Defined in: src/expectations/expectations.ts:98
Add an expectation to the set.
Parameters
expectation
Returns
this