From 0872e094a2befe07b929cc27e9fb78c515a495e1 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Tue, 3 Nov 2026 12:57:03 +0100 Subject: [PATCH] test: check that wiping one of several accounts clears what the desktop app shows --- lib/desktop/__tests__/os-store.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/desktop/__tests__/os-store.test.ts b/lib/desktop/__tests__/os-store.test.ts index e09aee90d..5b793cd9f 100644 --- a/lib/desktop/__tests__/os-store.test.ts +++ b/lib/desktop/__tests__/os-store.test.ts @@ -55,6 +55,9 @@ describe('the store and the OS integration', () => { const clearSurfaces = vi.fn(); window.bulwarkDesktop = { version: 1, platform: 'win32', os: { clearSurfaces } } as never; const { wipeAccount } = await import('@/lib/offline/offline-mode'); + const { useOfflineStore } = await import('@/lib/offline/state'); + // Not the last account, so this isn't the wipe of everything, which clears as well. + useOfflineStore.setState({ enabled: ['alice@one', 'bob@two'] }); await wipeAccount('alice@one').catch(() => {}); expect(clearSurfaces).toHaveBeenCalled(); window.bulwarkDesktop = undefined;