From a4422e8a4e5f572020e2a4af251b736697b19808 Mon Sep 17 00:00:00 2001 From: Junebugg1214 <82672745+Junebugg1214@users.noreply.github.com> Date: Thu, 12 Mar 2026 22:31:16 -0400 Subject: [PATCH] test: fix Gemini embedding assertion lint --- src/memory/embeddings.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/memory/embeddings.test.ts b/src/memory/embeddings.test.ts index 51bb7bf764a..3949fb0b05f 100644 --- a/src/memory/embeddings.test.ts +++ b/src/memory/embeddings.test.ts @@ -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, }); });