diff --git a/src/agents/xai.live.test.ts b/src/agents/xai.live.test.ts index b0ea88a9442..2201ccbdeee 100644 --- a/src/agents/xai.live.test.ts +++ b/src/agents/xai.live.test.ts @@ -130,7 +130,8 @@ describeLive("xai live", () => { : []; expect(payloadTools.length).toBeGreaterThan(0); const firstFunction = payloadTools[0]?.function; - expect(firstFunction && typeof firstFunction === "object").toBe(true); + expect(firstFunction).not.toBeNull(); + expect(typeof firstFunction).toBe("object"); expect([undefined, false]).toContain((firstFunction as Record).strict); }); }, 90_000); diff --git a/src/gateway/android-node.capabilities.live.test.ts b/src/gateway/android-node.capabilities.live.test.ts index e845365a07f..fdfe045538c 100644 --- a/src/gateway/android-node.capabilities.live.test.ts +++ b/src/gateway/android-node.capabilities.live.test.ts @@ -238,7 +238,7 @@ const COMMAND_PROFILES: Record = { outcome: "success", onSuccess: (payload) => { const obj = assertObjectPayload("sms.search", payload); - expect(typeof obj.count === "number" || typeof obj.count === "string").toBe(true); + expect(["number", "string"]).toContain(typeof obj.count); expect(Array.isArray(obj.messages)).toBe(true); }, },