From 77a22e316d72430673f202eea0d31665ad88571e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vlas=C3=A1k?= Date: Mon, 2 Mar 2020 14:29:55 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20child=20logger=20name=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tests/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/index.test.ts b/src/tests/index.test.ts index 2c5b3f3..0032c63 100644 --- a/src/tests/index.test.ts +++ b/src/tests/index.test.ts @@ -190,7 +190,7 @@ test('Child logger inherits parent name', () => { const logger = loggerFactory('parent', { disableStackdriverFormat: true }); const childLogger = logger('child'); - expect(childLogger.options.loggerName).toBe('parentchild'); + expect(childLogger.options[loggerNameKey]).toBe('parentchild'); }); test('Child logger can create another child', () => { @@ -198,5 +198,5 @@ test('Child logger can create another child', () => { const childLogger = logger('child'); const kid = childLogger('grandkid'); - expect(kid.options.loggerName).toBe('parentchildgrandkid'); + expect(kid.options[loggerNameKey]).toBe('parentchildgrandkid'); });