()
| 111 | } |
| 112 | |
| 113 | const callApi = () => { |
| 114 | return fetch(this.state.admin.url, { |
| 115 | method: 'POST', |
| 116 | mode: 'cors', |
| 117 | headers: { |
| 118 | 'Content-Type': 'application/json', |
| 119 | }, |
| 120 | body: JSON.stringify({ name, email }), |
| 121 | }) |
| 122 | } |
| 123 | |
| 124 | return callApi() |
| 125 | .then(() => { |
no outgoing calls
no test coverage detected