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:
parent
13d9108f91
commit
0242c03280
|
@ -21,11 +21,12 @@ describe('Utils', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
console.log.restore();
|
console.log.restore();
|
||||||
console.debug.restore();
|
console.debug.restore();
|
||||||
console.warn.restore();
|
console.warn.restore();
|
||||||
console.error.restore();
|
console.error.restore();
|
||||||
console.info.restore();
|
console.info.restore();
|
||||||
|
Log.init_logging();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should use noop for levels lower than the min level', function () {
|
it('should use noop for levels lower than the min level', function () {
|
||||||
|
|
Loading…
Reference in New Issue