Skip to content

Commit

Permalink
added test for holidaysquota and carry
Browse files Browse the repository at this point in the history
  • Loading branch information
dsumer committed Oct 16, 2023
1 parent 2283381 commit e35f681
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/clockodo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,30 @@ describe("Clockodo (instance)", () => {
nockScope.done();
});
});

describe("getHolidaysquota()", () => {
it("correctly builds getHolidaysquota() request", async () => {
const nockScope = nock(CLOCKODO_API)
.get("/holidaysquota?users_id=17")
.reply(200, {});

await clockodo.getHolidaysquota({ usersId: 17 });

nockScope.done();
});
});

describe("getHolidayscarry()", () => {
it("correctly builds getHolidayscarry() request", async () => {
const nockScope = nock(CLOCKODO_API)
.get("/holidayscarry?users_id=17&year=2028")
.reply(200, {});

await clockodo.getHolidayscarry({ usersId: 17, year: 2028 });

nockScope.done();
});
});
});

describe("POST", () => {
Expand Down

0 comments on commit e35f681

Please sign in to comment.