(initial = {})
| 49 | } |
| 50 | |
| 51 | function makeStore(initial = {}) { |
| 52 | const state = { ...initial }; |
| 53 | return { |
| 54 | getState: (k) => (state[k] !== undefined ? state[k] : null), |
| 55 | setState: (k, v) => { state[k] = v; }, |
| 56 | countPending: () => 0, |
| 57 | writeInbound: () => {}, |
| 58 | writeInboundBatch: () => {}, |
| 59 | _state: state, |
| 60 | }; |
| 61 | } |
| 62 | |
| 63 | function silentLogger() { |
| 64 | return { log: () => {}, warn: () => {}, error: () => {} }; |
no outgoing calls
no test coverage detected