mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 06:30:43 +00:00
test: tighten googlechat webhook body assertion
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user