Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(mobile): 补齐首页项目候选测试的别名输入

DavidShen21f3731a71c5
diff --git a/apps/mobile/src/__tests__/homeDisplaySettings.test.ts b/apps/mobile/src/__tests__/homeDisplaySettings.test.ts
index 5d67d7861f..d32c9f1028 100644
--- a/apps/mobile/src/__tests__/homeDisplaySettings.test.ts
+++ b/apps/mobile/src/__tests__/homeDisplaySettings.test.ts
@@ -227,8 +227,13 @@ describe('task info and retained Home behavior', () => {
workspaceKind: 'project', status: 'active', deviceLinkDeviceId: 'd', deviceLinkDeviceName: 'Computer' }));
const result = surfaceValue('projectFilterUniverse', { useMemo, buildMobileHomePresentation,
deviceModels: [], scheduleIndex: new Map(), selectedDeviceId: null, homeSessions: sessions,
+ projectAliases: new Map([['device:d:/A', 'Customer Portal']]),
t: (key: string) => key, searchQuery: 'no match', statusFilter: 'running' });
expect(result.projects.map((project: { workingDir: string }) => project.workingDir).sort()).toEqual(['/A', '/B']);
+ // #7026: the production initializer consumes host aliases; keep that input
+ // in this unit fixture and verify its visible title without filtering candidates.
+ expect(result.projects.find((project: { workingDir: string }) => project.workingDir === '/A')?.title)
+ .toBe('Customer Portal');
});
it('expires active-time rows using the actual clock input while Home stays open', () => {