test(server): format generated upload ID assertion

Retain the contributor correction to the stale request-derived ID expectation while satisfying the repository formatter.

Co-authored-by: hadan8977 <zc-huang23@mails.tsinghua.edu.cn>
This commit is contained in:
paseo-bot[bot]
2026-10-13 14:26:05 +02:00
co-authored by hadan8977
parent 86bb7169b7
commit 5e93bcfe8f
@@ -158,7 +158,9 @@ test("DaemonClient uploads file bytes to daemon temp storage", async () => {
});
const uploadId = result.file?.id ?? "";
expect(uploadId).toMatch(/^upload_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
expect(uploadId).toMatch(
/^upload_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,
);
expect(result).toEqual({
requestId: "req-upload-e2e",
file: {