From 4808ee70858f83a233019c5f369e981e4d03c4c0 Mon Sep 17 00:00:00 2001 From: Devvyn <22340871+opticon454@users.noreply.github.com> Date: Mon, 9 Nov 2026 11:31:13 +0800 Subject: [PATCH] test(ui): stub the sync switch where a case delete saves lastUsedCase --- test/run-mode-ui.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/run-mode-ui.test.ts b/test/run-mode-ui.test.ts index 1e833794..27295a2e 100644 --- a/test/run-mode-ui.test.ts +++ b/test/run-mode-ui.test.ts @@ -1107,6 +1107,7 @@ describe('case selector refresh', () => { { name: 'kept-case', path: '/tmp/kept-case' }, ]; app.showToast = vi.fn(); + app.loadAppSettingsFromStorage = () => ({}); // saveLastUsedCase asks whether case sync is on // deleteCase re-renders the case-manage list, whose path label goes through // _shortenHomePath. That method lives in terminal-ui.js, which this harness