Caplin Trader 5.1.0

Class: module:ct-chart/testing/ChartServiceStub

module:ct-chart/testing/ChartServiceStub()

new module:ct-chart/testing/ChartServiceStub()

A stub service for the module:ct-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