Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 77a22e3

Browse files
author
Michal Vlasák
committed
✅ Fix child logger name tests
1 parent 8fa83e1 commit 77a22e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tests/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,13 @@ test('Child logger inherits parent name', () => {
190190
const logger = loggerFactory('parent', { disableStackdriverFormat: true });
191191
const childLogger = logger('child');
192192

193-
expect(childLogger.options.loggerName).toBe('parentchild');
193+
expect(childLogger.options[loggerNameKey]).toBe('parentchild');
194194
});
195195

196196
test('Child logger can create another child', () => {
197197
const logger = loggerFactory('parent', { disableStackdriverFormat: true });
198198
const childLogger = logger('child');
199199
const kid = childLogger('grandkid');
200200

201-
expect(kid.options.loggerName).toBe('parentchildgrandkid');
201+
expect(kid.options[loggerNameKey]).toBe('parentchildgrandkid');
202202
});

0 commit comments

Comments
 (0)