(overrides = {})
| 57 | } |
| 58 | |
| 59 | function makeMailboxStore(overrides = {}) { |
| 60 | const state = { node_id: 'node_aaaaaaaaaaaa' }; |
| 61 | return Object.assign({ |
| 62 | getState: (key) => (state[key] !== undefined ? state[key] : null), |
| 63 | setState: (key, value) => { state[key] = value; }, |
| 64 | getCursor: () => null, |
| 65 | setCursor: () => {}, |
| 66 | writeInboundBatch: () => {}, |
| 67 | writeInbound: () => {}, |
| 68 | list: () => [], |
| 69 | pollOutbound: () => [], |
| 70 | countPending: () => 0, |
| 71 | incrementRetry: () => {}, |
| 72 | updateStatusBatch: () => {}, |
| 73 | _state: state, |
| 74 | }, overrides); |
| 75 | } |
| 76 | |
| 77 | function makeTextResponse(status, contentType, body) { |
| 78 | return { |
no outgoing calls
no test coverage detected