Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(desktop-app): assert observable team transition state (R3-L6)
Josué9f56f10e9320
diff --git a/desktop-app/src/__tests__/appService.teamTransitionOwnership.test.ts b/desktop-app/src/__tests__/appService.teamTransitionOwnership.test.tsindex 03b47f932..30a87690c 100644--- a/desktop-app/src/__tests__/appService.teamTransitionOwnership.test.ts+++ b/desktop-app/src/__tests__/appService.teamTransitionOwnership.test.ts@@ -548,16 +548,13 @@ describe('AppService deliberate team transition ownership', () => {readWorkflow: (namespace: string, name: string) => Promise<unknown>workflowKey: (namespace: string, name: string) => stringworkflowTeamByKey: Map<string, string>- activateGfsAuthScope: () => voidme: { teamId: string } | nullgfsScopeIdentity: { teamId: string | null; baseUrl: string } | nullgfsDispatchBlocked: booleangfsTransientTeamHopDepth: number}app.authClient = authClient- const activateGfsAuthScope = vi.spyOn(app, 'activateGfsAuthScope')await app.googleLogin('synthetic-google-token')- activateGfsAuthScope.mockClear()app.workflowTeamByKey.set(app.workflowKey('workflows', 'approval'), 'team-a')const switching = app.switchTeam('team-b')@@ -570,10 +567,6 @@ describe('AppService deliberate team transition ownership', () => {expect(switchResult).toMatchObject({ authenticated: true, me: { teamId: 'team-b' } })expect(tokenTeams.get(authClient.readWorkflow.mock.calls[0][0])).toBe('team-a')expect(workflowResult).toMatchObject({ token: expect.any(String) })- expect(activateGfsAuthScope).toHaveBeenCalledOnce()- expect(activateGfsAuthScope.mock.invocationCallOrder[0]).toBeLessThan(- authClient.readWorkflow.mock.invocationCallOrder[0]- )expect(app.me?.teamId).toBe('team-b')expect(app.gfsScopeIdentity).toMatchObject({ teamId: 'team-b', baseUrl: restA })expect(app.gfsDispatchBlocked).toBe(false)