mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-28 04:03:05 +00:00
test(server): check full uuid shape for upload id
This commit is contained in:
committed by
paseo-bot[bot]
parent
22b1f07165
commit
1db26ef113
@@ -158,7 +158,7 @@ test("DaemonClient uploads file bytes to daemon temp storage", async () => {
|
||||
});
|
||||
|
||||
const uploadId = result.file?.id ?? "";
|
||||
expect(uploadId).toMatch(/^upload_[0-9a-f-]{36}$/);
|
||||
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: {
|
||||
|
||||
Reference in New Issue
Block a user