[#421] added eslint check to CI (#534)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2026-02-10 10:41:37 +01:00
committed by GitHub
parent 8a6ec8fc39
commit d6e464afad
116 changed files with 1232 additions and 801 deletions
+3 -3
View File
@@ -68,18 +68,18 @@ describe("eventApi", () => {
});
it("putEvent logs when status is 201", async () => {
const consoleLogSpy = jest.spyOn(console, "log").mockImplementation();
const consoleInfoSpy = jest.spyOn(console, "info").mockImplementation();
const mockResponse = { status: 201, url: "/dav/cals/test.ics" };
(api as unknown as jest.Mock).mockReturnValue(mockResponse);
await putEvent(mockEvent);
expect(consoleLogSpy).toHaveBeenCalledWith(
expect(consoleInfoSpy).toHaveBeenCalledWith(
"Event created successfully:",
"/dav/cals/test.ics"
);
consoleLogSpy.mockRestore();
consoleInfoSpy.mockRestore();
});
test("moveEvent sends MOVE request with destination header", async () => {