(clientExpression: string, recordName: string)
| 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) => { |
nothing calls this directly
no test coverage detected