mirror of
https://github.com/FJurmanovic/sugarr.git
synced 2026-11-11 07:41:08 +00:00
12 lines
423 B
TypeScript
12 lines
423 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import { createLogger } from '../../../src/core/logging/logger';
|
|
|
|
describe('createLogger', () => {
|
|
it('creates a pino logger with the given name bound', () => {
|
|
const logger = createLogger('test-logger');
|
|
expect(logger.bindings().name).toBe('test-logger');
|
|
expect(typeof logger.info).toBe('function');
|
|
expect(typeof logger.error).toBe('function');
|
|
});
|
|
});
|