({ nodeId = 'node_aaaaaaaaaaaa' } = {})
| 129 | } |
| 130 | |
| 131 | function makeStore({ nodeId = 'node_aaaaaaaaaaaa' } = {}) { |
| 132 | const state = { node_id: nodeId }; |
| 133 | return { |
| 134 | getState: (k) => (state[k] !== undefined ? state[k] : null), |
| 135 | setState: (k, v) => { state[k] = v; }, |
| 136 | countPending: () => 0, |
| 137 | writeInbound: () => {}, |
| 138 | writeInboundBatch: () => {}, |
| 139 | }; |
| 140 | } |
| 141 | |
| 142 | function mockFetch(responseFactory) { |
| 143 | const calls = []; |
no outgoing calls
no test coverage detected