UNPKG

jest-node-http

Version:
25 lines 761 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Server { constructor(opts, requestListener) { this.close = jest.fn(); this.listen = jest.fn(); this.listening = jest.fn(); this.maxHeadersCount = jest.fn(); this.setTimeout = jest.fn(); this.timeout = jest.fn(); this.keepAliveTimeout = jest.fn(); return this; } resetMocked() { this.close.mockReset(); this.listen.mockReset(); this.listening.mockReset(); this.maxHeadersCount.mockReset(); this.setTimeout.mockReset(); this.timeout.mockReset(); this.keepAliveTimeout.mockReset(); } } exports.Server = Server; //# sourceMappingURL=Server.js.map