Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(desktop-app): mark auth fixtures as test tokens
Josué66ac2c07a42b
diff --git a/desktop-app/src/__tests__/appService.teamTransitionOwnership.test.ts b/desktop-app/src/__tests__/appService.teamTransitionOwnership.test.tsindex 81cce972b..749b2b3e8 100644--- a/desktop-app/src/__tests__/appService.teamTransitionOwnership.test.ts+++ b/desktop-app/src/__tests__/appService.teamTransitionOwnership.test.ts@@ -16,7 +16,7 @@ describe('AppService deliberate team transition ownership', () => {}app.authClient = {googleLogin: vi.fn().mockResolvedValue({- token: 'session-a',+ token: 'fixture-session-a',me: {id: 'user-a',email: '[email protected]',diff --git a/desktop-app/src/__tests__/rpcTokenManager.test.ts b/desktop-app/src/__tests__/rpcTokenManager.test.tsindex 1ec7fa6e8..7e18944bd 100644--- a/desktop-app/src/__tests__/rpcTokenManager.test.ts+++ b/desktop-app/src/__tests__/rpcTokenManager.test.ts@@ -26,18 +26,18 @@ describe('RpcTokenManager', () => {const issueRpcToken = vi.fn().mockReturnValueOnce(pending.promise)- .mockResolvedValueOnce(issuedToken('new-session-token'))+ .mockResolvedValueOnce(issuedToken('test-token-new'))const manager = new RpcTokenManager({ issueRpcToken } as unknown as AuthClient)const oldSessionRequest = manager.getOrIssue('old-session', ['host:activity:read'], ['chatllm'])manager.clear()- pending.resolve(issuedToken('old-session-token'))- await expect(oldSessionRequest).resolves.toMatchObject({ token: 'old-session-token' })+ pending.resolve(issuedToken('test-token-old'))+ await expect(oldSessionRequest).resolves.toMatchObject({ token: 'test-token-old' })expect(manager.getMetadata()).toEqual({ expiresAtMs: null, scopes: [], hostRefs: [] })await expect(manager.getOrIssue('new-session', ['host:activity:read'], ['chatllm'])- ).resolves.toMatchObject({ token: 'new-session-token' })+ ).resolves.toMatchObject({ token: 'test-token-new' })expect(issueRpcToken).toHaveBeenCalledTimes(2)})})