From 782f3829ecd2cf707f2c06034e89a25d5415d210 Mon Sep 17 00:00:00 2001 From: Dominik Sumer Date: Mon, 16 Oct 2023 08:38:02 +0200 Subject: [PATCH] added test for worktimeregulations call --- src/clockodo.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/clockodo.test.ts b/src/clockodo.test.ts index 6ea23587..8745b1a4 100644 --- a/src/clockodo.test.ts +++ b/src/clockodo.test.ts @@ -592,6 +592,18 @@ describe("Clockodo (instance)", () => { nockScope.done(); }); }); + + describe("getWorktimeRegulations()", () => { + it("correctly builds getWorktimeRegulations() request", async () => { + const nockScope = nock(CLOCKODO_API) + .get("/worktimeregulations") + .reply(200, {}); + + await clockodo.getWorktimeRegulations(); + + nockScope.done(); + }); + }); }); describe("POST", () => {