group-files test: expect the hub-groups root MKCOL before the per-group folder

This commit is contained in:
glass beadian 2026-10-13 05:37:15 +00:00
parent dec505b83e
commit c918fb984e

View file

@ -219,8 +219,9 @@ describe("ocis-webdav config + streaming verification", () => {
expect(result.sizeBytes).toBe(bytes.byteLength); expect(result.sizeBytes).toBe(bytes.byteLength);
expect(result.resourceId).toBe("res-1"); expect(result.resourceId).toBe("res-1");
expect(result.version).toBe("v-9"); expect(result.version).toBe("v-9");
expect(calls[0]).toBe("MKCOL https://files.example.org/remote.php/dav/files/svc/hub-groups/group-1"); expect(calls[0]).toBe("MKCOL https://files.example.org/remote.php/dav/files/svc/hub-groups");
expect(calls[1]).toBe("PUT https://files.example.org/remote.php/dav/files/svc/hub-groups/group-1/clip.mp4"); expect(calls[1]).toBe("MKCOL https://files.example.org/remote.php/dav/files/svc/hub-groups/group-1");
expect(calls[2]).toBe("PUT https://files.example.org/remote.php/dav/files/svc/hub-groups/group-1/clip.mp4");
expect(client.uploadUrl("g", "n.mp4")).toContain("/remote.php/dav/files/svc/hub-groups/g/n.mp4"); expect(client.uploadUrl("g", "n.mp4")).toContain("/remote.php/dav/files/svc/hub-groups/g/n.mp4");
expect(client.libraryUrl("res-1")).toBe("https://files.example.org/f/res-1"); expect(client.libraryUrl("res-1")).toBe("https://files.example.org/f/res-1");
}); });