mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-26 11:12:53 +00:00
test(server): stop expecting request-derived upload IDs
This commit is contained in:
committed by
paseo-bot[bot]
parent
6d43a8c5b0
commit
22b1f07165
@@ -157,15 +157,17 @@ test("DaemonClient uploads file bytes to daemon temp storage", async () => {
|
||||
chunkSize: 5,
|
||||
});
|
||||
|
||||
const uploadId = result.file?.id ?? "";
|
||||
expect(uploadId).toMatch(/^upload_[0-9a-f-]{36}$/);
|
||||
expect(result).toEqual({
|
||||
requestId: "req-upload-e2e",
|
||||
file: {
|
||||
type: "uploaded_file",
|
||||
id: "upload_req-upload-e2e",
|
||||
id: uploadId,
|
||||
fileName: "notes.txt",
|
||||
mimeType: "text/plain",
|
||||
size: 11,
|
||||
path: path.join(daemon.paseoHome, "uploads", "upload_req-upload-e2e", "notes.txt"),
|
||||
path: path.join(daemon.paseoHome, "uploads", uploadId, "notes.txt"),
|
||||
},
|
||||
error: null,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user