Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test([issue-13203]): give the host-control inbox test's account mock a getAccount

Adam Eivyba9973a8e199
diff --git a/server/routes/hostControlGitHubInbox.test.js b/server/routes/hostControlGitHubInbox.test.js
index bccf6ad88c..2e5cae249b 100644
--- a/server/routes/hostControlGitHubInbox.test.js
+++ b/server/routes/hostControlGitHubInbox.test.js
@@ -16,7 +16,8 @@ const auth = vi.hoisted(() => ({ enabled: false }));
const accounts = vi.hoisted(() => ({
listAccounts: vi.fn(async () => []),
createAccount: vi.fn(async (body) => ({ id: 'acct-example', ...body })),
- updateAccount: vi.fn(async (id, body) => ({ id, ...body })),
+ getAccount: vi.fn(async (id) => ({ id, trust: 'public', trustInstanceUsers: false })),
+ updateAccount: vi.fn(async (id, body) => ({ id, trust: 'public', trustInstanceUsers: false, ...body })),
deleteAccount: vi.fn(async () => ({ deleted: true })),
getAccountStatus: vi.fn(async () => ({ ok: true })),
}));