Fix outdated backend service tests
فشلت بعض الفحوصات
Deploy To Ghaymah / deploy (push) Has been cancelled
فشلت بعض الفحوصات
Deploy To Ghaymah / deploy (push) Has been cancelled
هذا الالتزام موجود في:
@@ -41,6 +41,9 @@ describe('CommentsService', () => {
|
||||
const usersRepository = {
|
||||
findByUsernames: jest.fn().mockResolvedValue([{ id: 'mentioned-user-id', username: 'new_mention' }]),
|
||||
};
|
||||
const followsRepository = {
|
||||
findOne: jest.fn(),
|
||||
};
|
||||
|
||||
const service = new CommentsService(
|
||||
commentsRepository as any,
|
||||
@@ -49,6 +52,7 @@ describe('CommentsService', () => {
|
||||
feedVersionService as any,
|
||||
notificationsService as any,
|
||||
usersRepository as any,
|
||||
followsRepository as any,
|
||||
);
|
||||
|
||||
const result = await service.update(userId, commentId, {
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم