test: tighten proxy coverage assertions

This commit is contained in:
Peter Steinberger
2026-05-09 12:06:23 +01:00
parent 234ea60c9d
commit 620698abdb

View File

@@ -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);
});
});