From fb5a7afc45edcda40480ee80f756092e30e7154c Mon Sep 17 00:00:00 2001 From: tclindner Date: Fri, 11 Aug 2017 19:32:21 +0300 Subject: [PATCH] Fix cli_test.js silently failing. The `console.log` stub needs to be restored. --- test/cli_test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/cli_test.js b/test/cli_test.js index a4bcb538..a88d235c 100644 --- a/test/cli_test.js +++ b/test/cli_test.js @@ -32,6 +32,10 @@ function rAfter() { if (process.stderr.write.restore) { process.stderr.write.restore(); } + + if (console.log.restore) { + console.log.restore(); + } } exports.bootlint = {