From 0332ffdb45d3318250d3a6b48835660805e8a7b1 Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Wed, 16 Sep 2026 10:08:37 +0200 Subject: [PATCH] style(chat): run prettier over the agent chat input tests Co-Authored-By: Claude Opus 5 (1M context) --- .../conversations/agentChatInputs.test.ts | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/frontend/src/lib/components/flows/conversations/agentChatInputs.test.ts b/frontend/src/lib/components/flows/conversations/agentChatInputs.test.ts index 0e7927c89d..c89d8e7fa4 100644 --- a/frontend/src/lib/components/flows/conversations/agentChatInputs.test.ts +++ b/frontend/src/lib/components/flows/conversations/agentChatInputs.test.ts @@ -471,10 +471,7 @@ describe('agents that do not read the message', () => { ["'Answer politely: ' + flow_input.user_message", 'embedded in a prompt'], ['flow_input.user_message + flow_input.tone', 'read alongside another input'] ])('treats %s as reading the message', (message) => { - const wiring = resolveAgentModelWiring([ - answerer(wired), - subAgent(fixed, message as string) - ]) + const wiring = resolveAgentModelWiring([answerer(wired), subAgent(fixed, message as string)]) expect(wiring?.fields.model).toBeUndefined() }) @@ -484,10 +481,7 @@ describe('agents that do not read the message', () => { ['flow_input.user_message // the message', 'a trailing comment'], ['flow_input.user_message\n// why', 'a comment on its own last line'] ])('still reads the message with %s', (message) => { - const wiring = resolveAgentModelWiring([ - answerer(wired), - subAgent(fixed, message as string) - ]) + const wiring = resolveAgentModelWiring([answerer(wired), subAgent(fixed, message as string)]) expect(wiring?.fields.model).toBeUndefined() }) @@ -496,10 +490,7 @@ describe('agents that do not read the message', () => { ["'flow_input.user_message'", 'a mention in a string'], ['flow_input.user_message_extra', 'a different input with the same prefix'] ])('does not treat %s as reading the message', (message) => { - const wiring = resolveAgentModelWiring([ - answerer(wired), - subAgent(fixed, message as string) - ]) + const wiring = resolveAgentModelWiring([answerer(wired), subAgent(fixed, message as string)]) expect(wiring?.fields.model).toBe('model') }) }) @@ -526,6 +517,8 @@ describe('parseProviderTransform with comments', () => { // The check exists to reject an expression with something else beside it; a second // expression is still something else. it('still refuses a second expression beside it', () => { - expect(parseProviderTransform({ type: 'javascript', expr: 'flow_input.provider, 1' })).toBeUndefined() + expect( + parseProviderTransform({ type: 'javascript', expr: 'flow_input.provider, 1' }) + ).toBeUndefined() }) })