Skip to content

Commit

Permalink
Adjusting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jan 2, 2021
1 parent dff5d9a commit 7db3ccc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 () {
Expand Down

0 comments on commit 7db3ccc

Please sign in to comment.