| 154 | }); |
| 155 | |
| 156 | class MockSeq extends http.Server { |
| 157 | constructor(port) { |
| 158 | super((_, res) => { |
| 159 | res.statusCode = this.status; |
| 160 | this.requestCount++; |
| 161 | res.end() |
| 162 | }); |
| 163 | this.status = 200; |
| 164 | this.requestCount = 0; |
| 165 | this.ready = new Promise((resolve, reject) => { |
| 166 | this.listen(port, "localhost") |
| 167 | .once('listening', resolve) |
| 168 | .once('error', reject); |
| 169 | }); |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | function makeTestEvent() { |
| 174 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected