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) <noreply@anthropic.com>
This commit is contained in:
Soumil Rathi
2026-04-13 13:53:37 -07:00
parent 2a5ffd0976
commit 9c01c895c1
@@ -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 () => {