new module:ct-chart /testing /Chart Service Stub()
A stub service for the module:ct-chart/service/StreamLinkChartService
service.
Methods
discard()
reset()
Allow tests to reinitialize the stub
retrieve()
set Historic Series Response Data(subject, data)
Allow tests to set the series test data.
Parameters:
Name | Type | Description |
---|---|---|
subject |
String | The subject |
data |
Array | The series data |
set Realtime Series Response Data(subject, data)
Allow tests to set the series test data.
Parameters:
Name | Type | Description |
---|---|---|
subject |
String | The subject |
data |
Array | The series data |