MCPcopy Create free account
hub / github.com/datalust/seq-logging / MockSeq

Class MockSeq

test/seq_logger_tests.js:156–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154});
155
156class 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
173function makeTestEvent() {
174 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected