From 54aaff142e299b3cd4d8a47bbf3d861e34681b1c Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 23:05:44 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#69669) Co-authored-by: github-actions[bot] --- .../app/chat/composer/hooks/use-composer-submit.test.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx b/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx index 3bf8ae8617ae..c2a6bc6d7993 100644 --- a/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx +++ b/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx @@ -21,6 +21,7 @@ function renderSubmitHook({ attachments = [], busy = false, text = '' }: SubmitH const onSteer = vi.fn(async () => true) const onSubmit = vi.fn(async () => true) const queueCurrentDraft = vi.fn(() => true) + const clearDraft = vi.fn(() => { draftRef.current = '' editorRef.current!.textContent = '' @@ -63,7 +64,10 @@ describe('useComposerSubmit busy-turn routing', () => { }) it('steers a plain-text follow-up instead of queueing or stopping', async () => { - const { hook, onCancel, onSteer, onSubmit, queueCurrentDraft } = renderSubmitHook({ busy: true, text: 'change course' }) + const { hook, onCancel, onSteer, onSubmit, queueCurrentDraft } = renderSubmitHook({ + busy: true, + text: 'change course' + }) act(() => { hook.result.current.submitDraft() @@ -94,6 +98,7 @@ describe('useComposerSubmit busy-turn routing', () => { it('queues an attachment-bearing follow-up while busy', () => { const attachment: ComposerAttachment = { id: 'doc', kind: 'file', label: 'notes.txt' } + const { hook, onCancel, onSteer, onSubmit, queueCurrentDraft } = renderSubmitHook({ attachments: [attachment], busy: true,