test: clarify nostr profile http assertion · openclaw/openclaw@b6a6580
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -430,7 +430,7 @@ describe("nostr-profile-http", () => {
|
430 | 430 | // The schema validation catches non-https URLs before SSRF check |
431 | 431 | expect(data.error).toBe("Validation failed"); |
432 | 432 | expect(data.details).toEqual(expect.any(Array)); |
433 | | -expect(data.details.some((d: string) => d.includes("https"))).toBe(true); |
| 433 | +expect(data.details).toEqual(expect.arrayContaining([expect.stringContaining("https")])); |
434 | 434 | }); |
435 | 435 | |
436 | 436 | it("does not persist if all relays fail", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。