Skip to content

Commit

Permalink
unitテスト修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 committed Jan 28, 2025
1 parent 7701eac commit 912912d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/backend/test/unit/CustomEmojiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { DI } from '@/di-symbols.js';
import { GlobalModule } from '@/GlobalModule.js';
import { EmojisRepository } from '@/models/_.js';
import { MiEmoji } from '@/models/Emoji.js';
import { CoreModule } from '@/core/CoreModule.js';

describe('CustomEmojiService', () => {
let app: TestingModule;
Expand All @@ -27,7 +28,7 @@ describe('CustomEmojiService', () => {
app = await Test
.createTestingModule({
imports: [
GlobalModule,
GlobalModule, CoreModule,
],
providers: [
CustomEmojiService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ describe('CheckModeratorsActivityProcessorService', () => {
await service.notifyChangeToDisablePublicNote();

expect(systemWebhookService.enqueueSystemWebhook).toHaveBeenCalledTimes(1);
expect(systemWebhookService.enqueueSystemWebhook.mock.calls[0][0]).toEqual(systemWebhook3);
expect(systemWebhookService.enqueueSystemWebhook.mock.calls[0][0] as SystemWebhookEventType).toEqual('inactiveModeratorsDisablePublicNoteChanged');
});
});
});

0 comments on commit 912912d

Please sign in to comment.