externalCheck <Actual>
Hierarchy
- Task
- Check
Index
Methods
staticexternalwhether
Type parameters
- Actual_Type
Parameters
externalactual: Answerable<Actual_Type>
externalexpectation: Expectation<Actual_Type>
Returns { andIfSo: (...activities: Activity[]) => Check<Actual_Type> }
externalinstantiationLocation
Returns the location where this
Activity
was instantiated.Returns FileSystemLocation
externalotherwise
Parameters
externalrest...alternativeActivities: Activity[]
A sequence of activities to perform when the
Expectation
is not met.
Returns Task
externalperformAs
Parameters
externalactor: AnswersQuestions & PerformsActivities
Learn more
Returns Promise<void>
externaldescribedBy
Resolves the description of this object in the context of the provided
actor
.Parameters
externalactor: AnswersQuestions & UsesAbilities & { name: string }
Returns Promise<string>
externaltoString
Returns a human-readable description of this object.
Returns string
A flow control statement that enables an
Actor
to decide between two alternate series of activities.Think of it as a Screenplay Pattern equivalent of the traditional
if
statement.Choose between two alternative sequences of activities
Perform a sequence of activities when a condition is met