A spy that can be attached to be notified of a component events using spyOnEvent
Properties
eventType
eventType: (readonly) string
The type of event to spy on
Methods
onEvent
onEvent(eventData?: T): void
Called when the attached component notifies of an eventType event
| Parameter | Type |
|---|
| eventData? | T the data associated with the event |