test: fix Gemini embedding assertion lint
This commit is contained in:
parent
e5e493abcf
commit
a4422e8a4e
@ -245,7 +245,8 @@ describe("embedding provider remote overrides", () => {
|
||||
await provider.embedQuery("hello");
|
||||
|
||||
const { init } = readFirstFetchRequest(fetchMock);
|
||||
expect(init?.body ? JSON.parse(String(init.body)) : {}).toMatchObject({
|
||||
const requestBody = typeof init?.body === "string" ? JSON.parse(init.body) : {};
|
||||
expect(requestBody).toMatchObject({
|
||||
outputDimensionality: 768,
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user