Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: type composer send mocks for payload assertions

Sayr Wolfridge74c0ba671ec6
diff --git a/app/src/pages/__tests__/Conversations.render.test.tsx b/app/src/pages/__tests__/Conversations.render.test.tsx
index 15b9ca0e45..bb998cd191 100644
--- a/app/src/pages/__tests__/Conversations.render.test.tsx
+++ b/app/src/pages/__tests__/Conversations.render.test.tsx
@@ -870,7 +870,7 @@ describe('Conversations — smoke render (#1123 welcome-lock removal)', () => {
reasoningEffort: 'default',
})
);
- expect(chatSend.mock.calls[0][0]).not.toHaveProperty('model');
+ expect(vi.mocked(chatSend).mock.calls[0][0]).not.toHaveProperty('model');
});
it('auto-sends a dictation transcript (autoSend) straight to chat without the composer', async () => {
@@ -896,7 +896,7 @@ describe('Conversations — smoke render (#1123 welcome-lock removal)', () => {
reasoningEffort: 'default',
})
);
- expect(chatSend.mock.calls[0][0]).not.toHaveProperty('model');
+ expect(vi.mocked(chatSend).mock.calls[0][0]).not.toHaveProperty('model');
});
});
@@ -950,7 +950,7 @@ describe('Conversations — smoke render (#1123 welcome-lock removal)', () => {
reasoningEffort: 'default',
})
);
- expect(chatSend.mock.calls[0][0]).not.toHaveProperty('model');
+ expect(vi.mocked(chatSend).mock.calls[0][0]).not.toHaveProperty('model');
// The send cleared the composer; with an empty composer mid-send the Send
// button morphs into the Stop button, so there is no Send affordance left
// to fire a duplicate send.
@@ -2042,7 +2042,7 @@ describe('Conversations — smoke render (#1123 welcome-lock removal)', () => {
reasoningEffort: 'default',
})
);
- expect(chatSend.mock.calls[0][0]).not.toHaveProperty('model');
+ expect(vi.mocked(chatSend).mock.calls[0][0]).not.toHaveProperty('model');
});
});
@@ -2119,7 +2119,7 @@ describe('Conversations — smoke render (#1123 welcome-lock removal)', () => {
reasoningEffort: 'default',
})
);
- expect(chatSend.mock.calls[0][0]).not.toHaveProperty('model');
+ expect(vi.mocked(chatSend).mock.calls[0][0]).not.toHaveProperty('model');
});
});