new module:ct-services /testing /Streamlink Service Stub()
Constructs a StreamlinkServiceStub.
The SubscriptionServiceStub serves to create a stub for a SubscriptionService
to enable tests to simulate a subscription.
Methods
generate Status Event(subject, status, fieldsopt)
generateStatusEvent
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
subject |
string | the subject, container or constituent record. |
|||||||||||||
status |
string | the status |
|||||||||||||
fields |
object |
<optional> |
the event fields to return from getFields Properties
|