update logger exports

This commit is contained in:
Marius Begby committed 2024-02-15 22:29:17 +01:00
1 parent cdf37ce503
commit e1b0aea7fc
62 files changed
+114 -152

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ import { ChatInputCommandInteraction } from 'discord.js';
import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { ExtendedClient } from '../../types/clientTypes';
import { checkChannelPermissionViewable } from '../../common/validation/permissionValidator';
import loggerModule from '../../common/services/logger';
import { loggerService } from '../../common/services/logger';
jest.mock('../../common/validation/permissionValidator');
jest.mock('../../common/services/logger', () => ({
@@ -47,7 +47,7 @@ describe('interactionCommandHandler', () => {
it('should handle command correctly when slash command is not found', async () => {
const loggerSpy = jest.spyOn(
loggerModule.child({ module: 'handler', name: 'interactionCommandHandler', executionId: executionId }),
loggerService.child({ module: 'handler', name: 'interactionCommandHandler', executionId: executionId }),
'warn'
);