mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 13:44:47 +00:00
test: tighten proxy capture store assertions
This commit is contained in:
@@ -103,14 +103,12 @@ describe("DebugProxyCaptureStore", () => {
|
||||
});
|
||||
|
||||
expect(store.listSessions(10)).toHaveLength(1);
|
||||
expect(store.queryPreset("double-sends", "session-1")).toEqual([
|
||||
expect.objectContaining({
|
||||
host: "api.example.com",
|
||||
path: "/v1/send",
|
||||
method: "POST",
|
||||
duplicateCount: 2,
|
||||
}),
|
||||
]);
|
||||
const duplicateRows = store.queryPreset("double-sends", "session-1");
|
||||
expect(duplicateRows).toHaveLength(1);
|
||||
expect(duplicateRows[0]?.host).toBe("api.example.com");
|
||||
expect(duplicateRows[0]?.path).toBe("/v1/send");
|
||||
expect(duplicateRows[0]?.method).toBe("POST");
|
||||
expect(duplicateRows[0]?.duplicateCount).toBe(2);
|
||||
expect(store.readBlob(firstPayload.dataBlobId ?? "")).toContain('"ok":true');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user