test(ui): stub the sync switch where a case delete saves lastUsedCase

This commit is contained in:
Devvyn committed 2026-11-09 11:31:13 +08:00
1 parent ea27adf104
commit 4808ee7085
1 file changed
+1
+1
View File
@@ -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