MCPcopy Index your code
hub / github.com/deepstreamIO/deepstream.io / writeAckSuccess

Function writeAckSuccess

test-e2e/framework/record.ts:95–108  ·  view source on GitHub ↗
(clientExpression: string, recordName: string)

Source from the content-addressed store, hash-verified

93 },
94
95 writeAckSuccess (clientExpression: string, recordName: string) {
96 getRecordData(clientExpression, recordName).forEach((recordData) => {
97 if (!recordData) { return }
98 sinon.assert.calledOnce(recordData.setCallback)
99 sinon.assert.calledWith(recordData.setCallback, null)
100 recordData.setCallback.resetHistory()
101 })
102 clientHandler.getClients(clientExpression).forEach((client) => {
103 if (!client.record.writeAcks) { return }
104 sinon.assert.calledOnce(client.record.writeAcks[recordName])
105 sinon.assert.calledWith(client.record.writeAcks[recordName], null)
106 client.record.writeAcks[recordName].resetHistory()
107 })
108 },
109
110 writeAckError (clientExpression: string, recordName: string, errorMessage: string) {
111 getRecordData(clientExpression, recordName).forEach((recordData) => {

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.80
getRecordDataFunction · 0.70

Tested by

no test coverage detected