From dad018cb036e1ff8454ccf5f20eb64def6c88944 Mon Sep 17 00:00:00 2001 From: Dominik Sumer Date: Mon, 16 Oct 2023 08:45:36 +0200 Subject: [PATCH] added test for overtimecarry --- src/clockodo.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/clockodo.test.ts b/src/clockodo.test.ts index 6ea23587..75aa782d 100644 --- a/src/clockodo.test.ts +++ b/src/clockodo.test.ts @@ -592,6 +592,18 @@ describe("Clockodo (instance)", () => { nockScope.done(); }); }); + + describe("getOvertimecarry()", () => { + it("correctly builds getOvertimecarry() request", async () => { + const nockScope = nock(CLOCKODO_API) + .get("/overtimecarry?users_id=17&year=2028") + .reply(200, {}); + + await clockodo.getOvertimecarry({ usersId: 17, year: 2028 }); + + nockScope.done(); + }); + }); }); describe("POST", () => {