From 7db3ccc5ddb281fd67d2338395755ea9d68fcd10 Mon Sep 17 00:00:00 2001 From: Jason Mulligan Date: Fri, 1 Jan 2021 19:37:25 -0500 Subject: [PATCH] Adjusting tests --- test/test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index a9042e3..7354353 100644 --- a/test/test.js +++ b/test/test.js @@ -21,8 +21,7 @@ const http = require("http"), "http://localhost:8001", "http://not.localhost:8001" ], - time: true, - logging: {enabled: false} + time: true }); function always (req, res, next) { @@ -60,6 +59,9 @@ router.put("/methods", (req, res) => res.send("")); router.options("/methods", (req, res) => res.send("")); router.trace("/methods", (req, res) => res.send("")); +// Overriding log() to minimize coverage reduction +router.log = () => void 0; + const server = http.createServer(router.route).listen(8001); describe("Methods", function () {