From 9c01c895c1337856cb1647bf597b2707628c2d99 Mon Sep 17 00:00:00 2001 From: Soumil Rathi Date: Mon, 13 Apr 2026 13:53:37 -0700 Subject: [PATCH] fix: use camelCase eventId in crud integration test assertions Client's snakeToCamelKeys converts the v3 response keys to camelCase. Co-Authored-By: Claude Opus 4.6 (1M context) --- mem0-ts/src/client/tests/integration/crud.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mem0-ts/src/client/tests/integration/crud.test.ts b/mem0-ts/src/client/tests/integration/crud.test.ts index bbcee3427..7003f87d6 100644 --- a/mem0-ts/src/client/tests/integration/crud.test.ts +++ b/mem0-ts/src/client/tests/integration/crud.test.ts @@ -54,7 +54,7 @@ describeIntegration("MemoryClient Integration — CRUD", () => { const result = await client.add(messages, { userId: TEST_USER_ID }); // v3 API processes memories asynchronously — returns PENDING - expect(result).toHaveProperty("event_id"); + expect(result).toHaveProperty("eventId"); expect(result).toHaveProperty("status"); }); @@ -71,7 +71,7 @@ describeIntegration("MemoryClient Integration — CRUD", () => { ]; const result = await client.add(messages, { userId: TEST_USER_ID }); - expect(result).toHaveProperty("event_id"); + expect(result).toHaveProperty("eventId"); }); test("memories become available after async processing", async () => { @@ -190,7 +190,7 @@ describeIntegration("MemoryClient Integration — CRUD", () => { }, ); - expect(result).toHaveProperty("event_id"); + expect(result).toHaveProperty("eventId"); }); test("getAll for non-existent user returns empty array", async () => {