From f17e4641888d82e28daaf125280a68fc13277cc9 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Wed, 28 May 2025 02:19:30 -0400 Subject: fix WebhookTestService again --- packages/backend/src/core/WebhookTestService.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/backend/src/core/WebhookTestService.ts') diff --git a/packages/backend/src/core/WebhookTestService.ts b/packages/backend/src/core/WebhookTestService.ts index 8c1508df24..7c85a32427 100644 --- a/packages/backend/src/core/WebhookTestService.ts +++ b/packages/backend/src/core/WebhookTestService.ts @@ -77,6 +77,7 @@ function generateDummyUser(override?: Partial): MiUser { mandatoryCW: null, rejectQuotes: false, allowUnsignedFetch: 'staff', + userProfile: null, attributionDomains: [], ...override, }; @@ -363,10 +364,15 @@ export class WebhookTestService { id: 'dummy-abuse-report1', targetUserId: 'dummy-target-user', targetUser: null, + targetUserProfile: null, + targetUserInstance: null, reporterId: 'dummy-reporter-user', reporter: null, + reporterProfile: null, + reporterInstance: null, assigneeId: null, assignee: null, + assigneeProfile: null, resolved: false, forwarded: false, comment: 'This is a dummy report for testing purposes.', -- cgit v1.2.3-freya From d86530a069061e81bfa4661ee75fb896b33e3e7d Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Fri, 30 May 2025 14:28:24 -0400 Subject: remove unused fields from WebhookTestService.ts --- packages/backend/src/core/WebhookTestService.ts | 3 --- packages/backend/test/unit/AbuseReportNotificationService.ts | 3 --- 2 files changed, 6 deletions(-) (limited to 'packages/backend/src/core/WebhookTestService.ts') diff --git a/packages/backend/src/core/WebhookTestService.ts b/packages/backend/src/core/WebhookTestService.ts index 7c85a32427..c4b01d535b 100644 --- a/packages/backend/src/core/WebhookTestService.ts +++ b/packages/backend/src/core/WebhookTestService.ts @@ -364,15 +364,12 @@ export class WebhookTestService { id: 'dummy-abuse-report1', targetUserId: 'dummy-target-user', targetUser: null, - targetUserProfile: null, targetUserInstance: null, reporterId: 'dummy-reporter-user', reporter: null, - reporterProfile: null, reporterInstance: null, assigneeId: null, assignee: null, - assigneeProfile: null, resolved: false, forwarded: false, comment: 'This is a dummy report for testing purposes.', diff --git a/packages/backend/test/unit/AbuseReportNotificationService.ts b/packages/backend/test/unit/AbuseReportNotificationService.ts index 55ec755dc7..ee68b10f1b 100644 --- a/packages/backend/test/unit/AbuseReportNotificationService.ts +++ b/packages/backend/test/unit/AbuseReportNotificationService.ts @@ -367,15 +367,12 @@ describe('AbuseReportNotificationService', () => { id: idService.gen(), targetUserId: alice.id, targetUser: alice, - targetUserProfile: null, targetUserInstance: null, reporterId: bob.id, reporter: bob, - reporterProfile: null, reporterInstance: null, assigneeId: null, assignee: null, - assigneeProfile: null, resolved: false, forwarded: false, comment: 'test', -- cgit v1.2.3-freya