mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-10 12:37:55 +01:00
Fix recovery service route test mocks
This commit is contained in:
1 parent
e9e60d2779
commit
b671cbda4b
10 files changed
+44
No files matched your search
@@ -81,6 +81,10 @@ function registerRouteMocks() {
|
|||||||
syncDocument: async () => undefined,
|
syncDocument: async () => undefined,
|
||||||
syncIssue: async () => undefined,
|
syncIssue: async () => undefined,
|
||||||
}),
|
}),
|
||||||
|
issueRecoveryActionService: () => ({
|
||||||
|
getActiveForIssue: vi.fn(async () => null),
|
||||||
|
listActiveForIssues: vi.fn(async () => new Map()),
|
||||||
|
}),
|
||||||
issueService: () => mockIssueService,
|
issueService: () => mockIssueService,
|
||||||
logActivity: mockLogActivity,
|
logActivity: mockLogActivity,
|
||||||
projectService: () => ({}),
|
projectService: () => ({}),
|
||||||
|
|||||||
@@ -116,6 +116,10 @@ function registerServiceMocks() {
|
|||||||
syncDocument: async () => undefined,
|
syncDocument: async () => undefined,
|
||||||
syncIssue: async () => undefined,
|
syncIssue: async () => undefined,
|
||||||
}),
|
}),
|
||||||
|
issueRecoveryActionService: () => ({
|
||||||
|
getActiveForIssue: vi.fn(async () => null),
|
||||||
|
listActiveForIssues: vi.fn(async () => new Map()),
|
||||||
|
}),
|
||||||
issueService: () => mockIssueService,
|
issueService: () => mockIssueService,
|
||||||
logActivity: mockLogActivity,
|
logActivity: mockLogActivity,
|
||||||
projectService: () => mockProjectService,
|
projectService: () => mockProjectService,
|
||||||
|
|||||||
@@ -61,6 +61,10 @@ vi.mock("../services/index.js", () => ({
|
|||||||
syncDocument: async () => undefined,
|
syncDocument: async () => undefined,
|
||||||
syncIssue: async () => undefined,
|
syncIssue: async () => undefined,
|
||||||
}),
|
}),
|
||||||
|
issueRecoveryActionService: () => ({
|
||||||
|
getActiveForIssue: vi.fn(async () => null),
|
||||||
|
listActiveForIssues: vi.fn(async () => new Map()),
|
||||||
|
}),
|
||||||
issueService: () => mockIssueService,
|
issueService: () => mockIssueService,
|
||||||
logActivity: vi.fn(async () => undefined),
|
logActivity: vi.fn(async () => undefined),
|
||||||
projectService: () => ({
|
projectService: () => ({
|
||||||
|
|||||||
@@ -133,6 +133,10 @@ function registerModuleMocks() {
|
|||||||
syncDocument: async () => undefined,
|
syncDocument: async () => undefined,
|
||||||
syncIssue: async () => undefined,
|
syncIssue: async () => undefined,
|
||||||
}),
|
}),
|
||||||
|
issueRecoveryActionService: () => ({
|
||||||
|
getActiveForIssue: vi.fn(async () => null),
|
||||||
|
listActiveForIssues: vi.fn(async () => new Map()),
|
||||||
|
}),
|
||||||
issueService: () => mockIssueService,
|
issueService: () => mockIssueService,
|
||||||
issueThreadInteractionService: () => mockIssueThreadInteractionService,
|
issueThreadInteractionService: () => mockIssueThreadInteractionService,
|
||||||
logActivity: mockLogActivity,
|
logActivity: mockLogActivity,
|
||||||
|
|||||||
@@ -82,6 +82,10 @@ function registerModuleMocks() {
|
|||||||
syncDocument: async () => undefined,
|
syncDocument: async () => undefined,
|
||||||
syncIssue: async () => undefined,
|
syncIssue: async () => undefined,
|
||||||
}),
|
}),
|
||||||
|
issueRecoveryActionService: () => ({
|
||||||
|
getActiveForIssue: vi.fn(async () => null),
|
||||||
|
listActiveForIssues: vi.fn(async () => new Map()),
|
||||||
|
}),
|
||||||
issueService: () => mockIssueService,
|
issueService: () => mockIssueService,
|
||||||
issueThreadInteractionService: () => mockIssueThreadInteractionService,
|
issueThreadInteractionService: () => mockIssueThreadInteractionService,
|
||||||
logActivity: mockLogActivity,
|
logActivity: mockLogActivity,
|
||||||
|
|||||||
@@ -93,6 +93,10 @@ function registerModuleMocks() {
|
|||||||
heartbeatService: () => mockHeartbeatService,
|
heartbeatService: () => mockHeartbeatService,
|
||||||
issueApprovalService: () => ({}),
|
issueApprovalService: () => ({}),
|
||||||
issueReferenceService: () => mockIssueReferenceService,
|
issueReferenceService: () => mockIssueReferenceService,
|
||||||
|
issueRecoveryActionService: () => ({
|
||||||
|
getActiveForIssue: vi.fn(async () => null),
|
||||||
|
listActiveForIssues: vi.fn(async () => new Map()),
|
||||||
|
}),
|
||||||
issueService: () => mockIssueService,
|
issueService: () => mockIssueService,
|
||||||
issueThreadInteractionService: () => mockIssueThreadInteractionService,
|
issueThreadInteractionService: () => mockIssueThreadInteractionService,
|
||||||
logActivity: mockLogActivity,
|
logActivity: mockLogActivity,
|
||||||
|
|||||||
@@ -58,6 +58,10 @@ function registerModuleMocks() {
|
|||||||
syncDocument: async () => undefined,
|
syncDocument: async () => undefined,
|
||||||
syncIssue: async () => undefined,
|
syncIssue: async () => undefined,
|
||||||
}),
|
}),
|
||||||
|
issueRecoveryActionService: () => ({
|
||||||
|
getActiveForIssue: vi.fn(async () => null),
|
||||||
|
listActiveForIssues: vi.fn(async () => new Map()),
|
||||||
|
}),
|
||||||
issueService: () => mockIssueService,
|
issueService: () => mockIssueService,
|
||||||
logActivity: vi.fn(async () => undefined),
|
logActivity: vi.fn(async () => undefined),
|
||||||
projectService: () => ({}),
|
projectService: () => ({}),
|
||||||
|
|||||||
@@ -86,6 +86,10 @@ function registerModuleMocks() {
|
|||||||
syncDocument: async () => undefined,
|
syncDocument: async () => undefined,
|
||||||
syncIssue: async () => undefined,
|
syncIssue: async () => undefined,
|
||||||
}),
|
}),
|
||||||
|
issueRecoveryActionService: () => ({
|
||||||
|
getActiveForIssue: vi.fn(async () => null),
|
||||||
|
listActiveForIssues: vi.fn(async () => new Map()),
|
||||||
|
}),
|
||||||
issueService: () => mockIssueService,
|
issueService: () => mockIssueService,
|
||||||
issueThreadInteractionService: () => mockInteractionService,
|
issueThreadInteractionService: () => mockInteractionService,
|
||||||
logActivity: mockLogActivity,
|
logActivity: mockLogActivity,
|
||||||
|
|||||||
@@ -73,6 +73,10 @@ vi.mock("../services/index.js", () => ({
|
|||||||
syncDocument: async () => undefined,
|
syncDocument: async () => undefined,
|
||||||
syncIssue: async () => undefined,
|
syncIssue: async () => undefined,
|
||||||
}),
|
}),
|
||||||
|
issueRecoveryActionService: () => ({
|
||||||
|
getActiveForIssue: vi.fn(async () => null),
|
||||||
|
listActiveForIssues: vi.fn(async () => new Map()),
|
||||||
|
}),
|
||||||
issueService: () => mockIssueService,
|
issueService: () => mockIssueService,
|
||||||
issueThreadInteractionService: () => mockIssueThreadInteractionService,
|
issueThreadInteractionService: () => mockIssueThreadInteractionService,
|
||||||
logActivity: vi.fn(async () => undefined),
|
logActivity: vi.fn(async () => undefined),
|
||||||
@@ -131,6 +135,10 @@ function registerModuleMocks() {
|
|||||||
syncDocument: async () => undefined,
|
syncDocument: async () => undefined,
|
||||||
syncIssue: async () => undefined,
|
syncIssue: async () => undefined,
|
||||||
}),
|
}),
|
||||||
|
issueRecoveryActionService: () => ({
|
||||||
|
getActiveForIssue: vi.fn(async () => null),
|
||||||
|
listActiveForIssues: vi.fn(async () => new Map()),
|
||||||
|
}),
|
||||||
issueService: () => mockIssueService,
|
issueService: () => mockIssueService,
|
||||||
issueThreadInteractionService: () => mockIssueThreadInteractionService,
|
issueThreadInteractionService: () => mockIssueThreadInteractionService,
|
||||||
logActivity: vi.fn(async () => undefined),
|
logActivity: vi.fn(async () => undefined),
|
||||||
|
|||||||
@@ -115,6 +115,10 @@ function registerRouteMocks() {
|
|||||||
syncDocument: async () => undefined,
|
syncDocument: async () => undefined,
|
||||||
syncIssue: async () => undefined,
|
syncIssue: async () => undefined,
|
||||||
}),
|
}),
|
||||||
|
issueRecoveryActionService: () => ({
|
||||||
|
getActiveForIssue: vi.fn(async () => null),
|
||||||
|
listActiveForIssues: vi.fn(async () => new Map()),
|
||||||
|
}),
|
||||||
issueService: () => mockIssueService,
|
issueService: () => mockIssueService,
|
||||||
logActivity: mockLogActivity,
|
logActivity: mockLogActivity,
|
||||||
projectService: () => ({}),
|
projectService: () => ({}),
|
||||||
|
|||||||
Reference in new issue
Block a user