Skip to content

Commit 75256b5

Browse files
committed
Fix undefined error in logger test symbol iteration
1 parent 595b76a commit 75256b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/registry/logger.test.mts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ describe('logger module', () => {
4444
it('should have all required symbols', () => {
4545
const symbols = ['fail', 'info', 'success', 'warn'] as const
4646
for (const symbol of symbols) {
47-
expect(typeof LOG_SYMBOLS[symbol]).toBe('string')
48-
expect(LOG_SYMBOLS[symbol].length).toBeGreaterThan(0)
47+
const logSymbol = LOG_SYMBOLS[symbol]
48+
expect(typeof logSymbol).toBe('string')
49+
expect(logSymbol?.length).toBeGreaterThan(0)
4950
}
5051
})
5152

0 commit comments

Comments
 (0)