Caplin Trader 4.8.0

Class: module:caplin/chart/testing/ChartServiceStub

module:caplin/chart/testing/ChartServiceStub

Constructor

new module:caplin/chart/testing/ChartServiceStub()

A stub service for the module:caplin/chart/service/StreamLinkChartService service.

Methods

discard()

See:

reset()

Allow tests to reinitialize the stub

retrieve()

See:

setHistoricSeriesResponseData(subject, data)

Allow tests to set the series test data.
Parameters:
Name Type Description
subject String The subject
data Array The series data

setRealtimeSeriesResponseData(subject, data)

Allow tests to set the series test data.
Parameters:
Name Type Description
subject String The subject
data Array The series data