fix unit tests?

This commit is contained in:
tamaina 2025-07-17 16:10:03 +09:00
parent 96125673a6
commit dd09ce2eb2
2 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,7 @@ describe('UserSuspendService', () => {
usernameLower: secureRndstr(16).toLowerCase(),
host: null,
isSuspended: false,
isRemoteSuspended: false,
...data,
} as MiUser;

View File

@ -51,6 +51,7 @@ import { ReactionService } from '@/core/ReactionService.js';
import { NotificationService } from '@/core/NotificationService.js';
import { ReactionsBufferingService } from '@/core/ReactionsBufferingService.js';
import { ChatService } from '@/core/ChatService.js';
import { UserSuspendService } from '@/core/UserSuspendService.js';
process.env.NODE_ENV = 'test';
@ -170,6 +171,7 @@ describe('UserEntityService', () => {
InstanceChart,
ApLoggerService,
AccountMoveService,
UserSuspendService,
ReactionService,
ReactionsBufferingService,
NotificationService,