From 86a68839b02bfe45c5673de2d91e4139a9edf83b Mon Sep 17 00:00:00 2001 From: Void Date: Thu, 12 Nov 2026 13:08:20 +0000 Subject: [PATCH] File zone share tests: lint Co-Authored-By: Claude Sonnet 5.5 --- src/app/features/albums/shareController.test.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/features/albums/shareController.test.ts b/src/app/features/albums/shareController.test.ts index 813c65b2..f29091dc 100644 --- a/src/app/features/albums/shareController.test.ts +++ b/src/app/features/albums/shareController.test.ts @@ -33,8 +33,6 @@ const make = (over: Partial> = {}, roomId = '!zone:x') => { return { c, h, sentTo }; }; -const tick = () => new Promise((r) => setTimeout(r, 0)); - describe('picking', () => { it('starts idle with nothing picked, and a pick holds the files in order', () => { const { c } = make(); @@ -148,7 +146,7 @@ describe('progress and results', () => { it('full success clears the pick, tells the room list, and remounts the input', async () => { const { c, h, sentTo } = make(); c.pick([file('a')]); - const epoch = c.getState().epoch; + const { epoch } = c.getState(); const p = c.send(); h.release(ok(1)); await p; @@ -197,7 +195,6 @@ describe('an encrypted room', () => { const { c, h } = make({ isEncrypted: () => true }); c.pick([file('a')]); await c.send(); - await tick(); expect(ENCRYPTED_NOTE).toBe('Not shared: this room is encrypted.'); expect(c.getState().phase).toEqual({ kind: 'done', text: ENCRYPTED_NOTE }); expect(c.getState().files).toHaveLength(1);