]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Restore logging properly after log tests
authorSamuel Mannehed <samuel@cendio.se>
Thu, 28 Sep 2017 12:11:44 +0000 (14:11 +0200)
committerSamuel Mannehed <samuel@cendio.se>
Thu, 28 Sep 2017 12:11:44 +0000 (14:11 +0200)
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

index 4ab2944f62e1b440822f001218d931ec5557427a..12f41d6248171eb61ed15a695e729c64796b4300 100644 (file)
@@ -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 () {