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(notifications): scope Assist analysis fixture (#13376)

[._.]/ Adam Eivy390b97d8395a
diff --git a/server/services/githubNotifications.db.test.js b/server/services/githubNotifications.db.test.js
index 76e7189776..c28a2675d5 100644
--- a/server/services/githubNotifications.db.test.js
+++ b/server/services/githubNotifications.db.test.js
@@ -976,8 +976,10 @@ describe.skipIf(!runDb)('GitHub notifications inbox against Postgres', () => {
await resolveWithAgent(account.id, '1505');
expect(vi.mocked(addTask).mock.calls[1][0]).toMatchObject({ provider: 'acct-p', model: 'acct-m', effort: undefined });
// Autopilot never starts the generic lane on its own.
+ vi.mocked(runUntrustedContentAnalysis).mockResolvedValue({ ok: true, value: { verdict: 'surface' } });
await updateAccount(account.id, { mode: 'autopilot' });
await syncAccountNotifications(account.id);
+ expect(runUntrustedContentAnalysis).toHaveBeenCalledTimes(2);
expect(addTask).toHaveBeenCalledTimes(2);
// A succeeded run marks its thread done on GitHub and logs the task. The