mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 12:40:42 +00:00
test: tighten proxy coverage assertions
This commit is contained in:
@@ -8,8 +8,8 @@ describe("debug proxy coverage report", () => {
|
||||
expect(report.summary.total).toBe(report.entries.length);
|
||||
expect(report.summary.captured).toBeGreaterThan(0);
|
||||
expect(report.summary.proxyOnly).toBeGreaterThan(0);
|
||||
expect(report.entries.map((entry) => entry.id)).toEqual(
|
||||
expect.arrayContaining(["provider-transport-fetch", "feishu-client-http"]),
|
||||
);
|
||||
const entryIds = new Set(report.entries.map((entry) => entry.id));
|
||||
expect(entryIds.has("provider-transport-fetch")).toBe(true);
|
||||
expect(entryIds.has("feishu-client-http")).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user