(method, data)
| 25 | * @return Promise |
| 26 | */ |
| 27 | function makeTopicRequest(method, data) { |
| 28 | return fetch(API_ENDPOINT, { |
| 29 | method: method, |
| 30 | headers: { |
| 31 | 'Accept': 'application/json', |
| 32 | 'Content-Type': 'application/json' |
| 33 | }, |
| 34 | body: JSON.stringify(data) |
| 35 | }); |
| 36 | } |
| 37 | |
| 38 | function increment(index) { |
| 39 | return { type: types.INCREMENT_COUNT, index }; |
no outgoing calls
no test coverage detected