Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#106881)

hermes-seaeye[bot]47104b9f1769
diff --git a/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsx b/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsx
index 55423865ee4..662f195a308 100644
--- a/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsx
+++ b/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsx
@@ -55,9 +55,11 @@ describe('useBackgroundSync profile-scoped session refresh', () => {
it('coalesces change ticks while the live status request is pending', async () => {
$changeEventsAvailable.set(true)
let release!: (value: { sessions: [] }) => void
+
const pending = new Promise<{ sessions: [] }>(resolve => {
release = resolve
})
+
const request = vi.fn(() => pending)
render('default', 'local', async () => undefined, request)
await act(async () => undefined)