From d94ab3db392e368100bb710f5ccd2400cb9ad80a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 11 May 2026 03:17:49 +0100 Subject: [PATCH] test: avoid string spread in image tempdir assertion --- src/media/image-ops.tempdir.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media/image-ops.tempdir.test.ts b/src/media/image-ops.tempdir.test.ts index 1e37e5e867a..83090cd736c 100644 --- a/src/media/image-ops.tempdir.test.ts +++ b/src/media/image-ops.tempdir.test.ts @@ -34,7 +34,7 @@ describe("image-ops temp dir", () => { expect(prefix?.endsWith("-")).toBe(true); const uuid = prefix?.slice(uuidPrefix.length, -1) ?? ""; expect(uuid).toHaveLength(36); - expect([...uuid].every((char) => /[0-9a-f-]/u.test(char))).toBe(true); + expect(Array.from(uuid).every((char) => /[0-9a-f-]/u.test(char))).toBe(true); expect([8, 13, 18, 23].map((index) => uuid[index])).toEqual(["-", "-", "-", "-"]); expect(path.dirname(prefix ?? "")).toBe(secureRoot); expect(createdTempDir.startsWith(prefix ?? "")).toBe(true);