[#7] fixed move destination

This commit is contained in:
Camille Moussu
2025-08-29 10:21:43 +02:00
parent 8ce8839383
commit 64f3ff0aa4
5 changed files with 12 additions and 13 deletions
+2 -3
View File
@@ -79,15 +79,14 @@ describe("eventApi", () => {
(api as unknown as jest.Mock).mockReturnValue({
json: jest.fn().mockResolvedValue(mockResponse),
});
const result = await moveEvent(mockEvent);
const result = await moveEvent(mockEvent, "newurl.ics");
expect(api).toHaveBeenCalledWith(
"dav/calendars/667037022b752d0026472254/667037022b752d0026472254/cal1.ics",
expect.objectContaining({
method: "MOVE",
headers: {
destination:
"/calendars/667037022b752d0026472254/667037022b752d0026472254/cal1.ics",
destination: "newurl.ics",
},
})
);