From 0242c032807096a0e823418e39dec646ec025414 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Thu, 28 Sep 2017 14:11:44 +0200 Subject: [PATCH] Restore logging properly after log tests Our logging module keeps its own copy so we need to call init_logging in the test cleanup to update things. --- tests/test.util.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/test.util.js b/tests/test.util.js index 4ab2944f..12f41d62 100644 --- a/tests/test.util.js +++ b/tests/test.util.js @@ -21,11 +21,12 @@ describe('Utils', function() { }); afterEach(function () { - console.log.restore(); - console.debug.restore(); - console.warn.restore(); - console.error.restore(); - console.info.restore(); + console.log.restore(); + console.debug.restore(); + console.warn.restore(); + console.error.restore(); + console.info.restore(); + Log.init_logging(); }); it('should use noop for levels lower than the min level', function () {