We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5e2392 commit c17ea90Copy full SHA for c17ea90
src/components/AiChat/AiChat.test.tsx
@@ -179,10 +179,13 @@ describe("AiChat", () => {
179
await user.paste("User message")
180
await user.click(screen.getByRole("button", { name: "Send" }))
181
182
- expect(transformBody).toHaveBeenCalledWith([
183
- expect.objectContaining(initialMessages[0]),
184
- expect.objectContaining({ content: "User message", role: "user" }),
185
- ])
+ expect(transformBody).toHaveBeenCalledWith(
+ [
+ expect.objectContaining(initialMessages[0]),
+ expect.objectContaining({ content: "User message", role: "user" }),
186
+ ],
187
+ {},
188
+ )
189
expect(mockFetch).toHaveBeenCalledTimes(1)
190
expect(mockFetch).toHaveBeenCalledWith(
191
API_URL,
0 commit comments