test: avoid string spread in image tempdir assertion · openclaw/openclaw@d94ab3d
steipete
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -34,7 +34,7 @@ describe("image-ops temp dir", () => {
|
34 | 34 | expect(prefix?.endsWith("-")).toBe(true); |
35 | 35 | const uuid = prefix?.slice(uuidPrefix.length, -1) ?? ""; |
36 | 36 | expect(uuid).toHaveLength(36); |
37 | | -expect([...uuid].every((char) => /[0-9a-f-]/u.test(char))).toBe(true); |
| 37 | +expect(Array.from(uuid).every((char) => /[0-9a-f-]/u.test(char))).toBe(true); |
38 | 38 | expect([8, 13, 18, 23].map((index) => uuid[index])).toEqual(["-", "-", "-", "-"]); |
39 | 39 | expect(path.dirname(prefix ?? "")).toBe(secureRoot); |
40 | 40 | expect(createdTempDir.startsWith(prefix ?? "")).toBe(true); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。