From ea502a062383fca4ba5184a44b15c27eee03bc09 Mon Sep 17 00:00:00 2001 From: Christopher Hoskin Date: Tue, 11 Aug 2020 10:52:53 +0100 Subject: [PATCH] Put LoggingManager.initialize back as it was in tests --- libraries/logger/test/unit/loggingManagerTests.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/logger/test/unit/loggingManagerTests.js b/libraries/logger/test/unit/loggingManagerTests.js index 5f8c3a9d81..6874425010 100644 --- a/libraries/logger/test/unit/loggingManagerTests.js +++ b/libraries/logger/test/unit/loggingManagerTests.js @@ -107,21 +107,18 @@ describe('LoggingManager', function () { describe('in production', function () { beforeEach(function () { process.env.NODE_ENV = 'production' + this.logger = this.LoggingManager.initialize(this.loggerName) }) afterEach(() => delete process.env.NODE_ENV) it('should default to log level warn', function () { - this.logger = this.LoggingManager.initialize(this.loggerName) this.Bunyan.createLogger.firstCall.args[0].streams[0].level.should.equal( 'warn' ) }) describe('logLevelSource file', function () { - beforeEach(function() { - this.logger = this.LoggingManager.initialize(this.loggerName) - }) it('should run checkLogLevel', function () { this.checkLogLevelStub.should.have.been.calledOnce