description of the expectation
Resolve the expectation
The expectation get fulfilled if all the requireds expectations are.
The normalized data is provided as dictionary {[key:string]: normalizedData(key)} where key reference the keys in requireds + optionals and normalizedData(key) the normalize data of the associated expectation.
The class documentation provide an example of use.
Expectation status from given inputData, either FulfilledExpectation or RejectedExpectation
Generated using TypeDoc
Contract
The objects Contract are an expectation that gather multiple expectations 😵.
Let consider the following example (and assume Material, Mesh, Option1, Option2 are known classes):
Using this contract in an input will ensure we always get the following normalized data-structure in the triggered callback: