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.
This commit is contained in:
Samuel Mannehed 2017-09-28 14:11:44 +02:00
parent 13d9108f91
commit 0242c03280
1 changed files with 6 additions and 5 deletions

View 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 () {