test: tighten googlechat webhook body assertion

This commit is contained in:
Peter Steinberger
2026-05-09 06:38:00 +01:00
parent ce843fe53d
commit bb95031ea5

View File

@@ -219,7 +219,7 @@ describe("Google Chat webhook routing", () => {
const onSpy = vi.spyOn(req, "on");
const res = await dispatchWebhookRequest(req);
expect(res.statusCode).toBe(401);
expect(onSpy).not.toHaveBeenCalledWith("data", expect.any(Function));
expect(onSpy.mock.calls.some(([event]) => event === "data")).toBe(false);
} finally {
unregister();
}