test: tighten nostr profile fuzz assertion · openclaw/openclaw@10940dc
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -53,8 +53,10 @@ describe("profile unicode attacks", () => {
|
53 | 53 | if (!result.profile) { |
54 | 54 | throw new Error("expected validated profile"); |
55 | 55 | } |
56 | | -expect(result.valid).toBe(true); |
57 | | -expect(result.profile).toMatchObject({ name: "\u202Eevil\u202C" }); |
| 56 | +expect(result).toEqual({ |
| 57 | +valid: true, |
| 58 | +profile: { name: "\u202Eevil\u202C" }, |
| 59 | +}); |
58 | 60 | |
59 | 61 | // UI should escape or handle this |
60 | 62 | const sanitized = sanitizeProfileForDisplay(result.profile); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。