chore(test): fix frontend format drift

This commit is contained in:
Melody Ruch authored and GitHub committed 2026-08-19 18:32:48 +08:00
1 parent 80a808d53c
commit e65c3ab914
1 file changed
+1 -3
@@ -86,9 +86,7 @@ describe("connectionStore one_time runtime cleanup", () => {
it("initFromDisk preserves an open one_time connection during a persisted-list reload", async () => { it("initFromDisk preserves an open one_time connection during a persisted-list reload", async () => {
installApiMocks(); installApiMocks();
const { loadConnections } = await import("@/lib/backend/api"); const { loadConnections } = await import("@/lib/backend/api");
vi.mocked(loadConnections).mockResolvedValue([ vi.mocked(loadConnections).mockResolvedValue([previewConnection({ id: "saved-1", name: "Saved", one_time: false })]);
previewConnection({ id: "saved-1", name: "Saved", one_time: false }),
]);
const { useConnectionStore } = await import("@/stores/connectionStore"); const { useConnectionStore } = await import("@/stores/connectionStore");
const store = useConnectionStore(); const store = useConnectionStore();
store.connections = [previewConnection({ id: "deeplink-1", name: "Deeplink", one_time: true })]; store.connections = [previewConnection({ id: "deeplink-1", name: "Deeplink", one_time: true })];