Skip to content

The agent that grows with you

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

hermes-seaeye[bot]cfdbbb6e3501
diff --git a/apps/desktop/electron/notification-registry.test.ts b/apps/desktop/electron/notification-registry.test.ts
index 2bc6be591f7..def84922289 100644
--- a/apps/desktop/electron/notification-registry.test.ts
+++ b/apps/desktop/electron/notification-registry.test.ts
@@ -28,9 +28,11 @@ it('retains a dismissed banner until its later click or action is consumed', ()
it('dismisses an expired notification before releasing it and releases failed delivery immediately', () => {
vi.useFakeTimers()
const registry = createNotificationRegistry({ ttlMs: 1000 })
+
const notification = Object.assign(new EventEmitter(), {
close: vi.fn(() => expect(registry.has(notification)).toBe(true))
})
+
registry.retain(notification)
vi.advanceTimersByTime(1000)
expect(notification.close).toHaveBeenCalledOnce()