The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(coreStateApi): reformat long mock arguments for readability
Steven Enamakel25fd9f0328a1
diff --git a/app/src/services/coreStateApi.test.ts b/app/src/services/coreStateApi.test.tsindex 72ffe10fa2..3efc2c793c 100644--- a/app/src/services/coreStateApi.test.ts+++ b/app/src/services/coreStateApi.test.ts@@ -122,12 +122,20 @@ describe('coreStateApi.fetchCoreAppSnapshot', () => {it('retries the whole snapshot when the active credential changed underneath the current-user fetch', async () => {mockCallCoreRpc// 1) app_state_snapshot for user A.- .mockResolvedValueOnce({ result: makeSnapshotResult({ auth: { isAuthenticated: true, userId: 'user-a', user: null, profileId: 'p-a' } }) })+ .mockResolvedValueOnce({+ result: makeSnapshotResult({+ auth: { isAuthenticated: true, userId: 'user-a', user: null, profileId: 'p-a' },+ }),+ })// 2) re-check: userId moved on to user B (or signed out and back in)// while `fetchCurrentUser` was in flight..mockResolvedValueOnce({ result: { isAuthenticated: true, userId: 'user-b' } })// 3) the retried app_state_snapshot, now consistently for user B.- .mockResolvedValueOnce({ result: makeSnapshotResult({ auth: { isAuthenticated: true, userId: 'user-b', user: null, profileId: 'p-b' } }) })+ .mockResolvedValueOnce({+ result: makeSnapshotResult({+ auth: { isAuthenticated: true, userId: 'user-b', user: null, profileId: 'p-b' },+ }),+ })// 4) re-check for the retry: matches this time..mockResolvedValueOnce({ result: { isAuthenticated: true, userId: 'user-b' } });mockFetchCurrentUser