(clientExpression: string, recordName: string, errorMessage: string)
| 108 | }, |
| 109 | |
| 110 | writeAckError (clientExpression: string, recordName: string, errorMessage: string) { |
| 111 | getRecordData(clientExpression, recordName).forEach((recordData) => { |
| 112 | if (!recordData) { return } |
| 113 | sinon.assert.calledOnce(recordData.setCallback) |
| 114 | sinon.assert.calledWith(recordData.setCallback, errorMessage) |
| 115 | recordData.setCallback.resetHistory() |
| 116 | }) |
| 117 | clientHandler.getClients(clientExpression).forEach((client) => { |
| 118 | if (!client.record.writeAcks) { return } |
| 119 | sinon.assert.calledOnce(client.record.writeAcks[recordName]) |
| 120 | sinon.assert.calledWith(client.record.writeAcks[recordName], errorMessage) |
| 121 | client.record.writeAcks[recordName].resetHistory() |
| 122 | }) |
| 123 | }, |
| 124 | |
| 125 | snapshotSuccess (clientExpression: string, recordName: string, data: string) { |
| 126 | clientHandler.getClients(clientExpression).forEach((client) => { |
nothing calls this directly
no test coverage detected