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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user