From 68630d97e1ddca2b45defc87295cbda2104edd0b Mon Sep 17 00:00:00 2001 From: Shakker Date: Sun, 10 May 2026 19:32:04 +0100 Subject: [PATCH] test: tighten feishu probe request assertion --- extensions/feishu/src/probe.test.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/extensions/feishu/src/probe.test.ts b/extensions/feishu/src/probe.test.ts index 89ba57e8309..3fac9d8eb37 100644 --- a/extensions/feishu/src/probe.test.ts +++ b/extensions/feishu/src/probe.test.ts @@ -138,14 +138,12 @@ describe("probeFeishu", () => { await probeFeishu(DEFAULT_CREDS); - expect(requestFn).toHaveBeenCalledWith( - expect.objectContaining({ - method: "POST", - url: "/open-apis/bot/v1/openclaw_bot/ping", - data: { needBotInfo: true }, - timeout: FEISHU_PROBE_REQUEST_TIMEOUT_MS, - }), - ); + expect(requestFn).toHaveBeenCalledWith({ + method: "POST", + url: "/open-apis/bot/v1/openclaw_bot/ping", + data: { needBotInfo: true }, + timeout: FEISHU_PROBE_REQUEST_TIMEOUT_MS, + }); }); it("returns timeout error when request exceeds timeout", async () => {