({ nodeId = 'node_aaaaaaaaaaaa' } = {})
| 52 | } |
| 53 | |
| 54 | function makeStore({ nodeId = 'node_aaaaaaaaaaaa' } = {}) { |
| 55 | const state = { node_id: nodeId }; |
| 56 | return { |
| 57 | getState: (k) => (state[k] !== undefined ? state[k] : null), |
| 58 | setState: (k, v) => { state[k] = v; }, |
| 59 | countPending: () => 0, |
| 60 | writeInbound: () => {}, |
| 61 | writeInboundBatch: () => {}, |
| 62 | }; |
| 63 | } |
| 64 | |
| 65 | function mockFetch(responseFactory) { |
| 66 | const calls = []; |
no outgoing calls
no test coverage detected