Skip to content

Commit

Permalink
updated readme and test
Browse files Browse the repository at this point in the history
  • Loading branch information
dsumer committed Oct 10, 2023
1 parent b5e1a52 commit 970e82d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -790,14 +790,14 @@ await clockodo.deactivateService({ id: 94 });

---

### deactivateUser()
### deleteUser()

Deactivates (not deletes) user.
Deletes user.

#### Example:

```js
await clockodo.deactivateUser({ id: 7 });
await clockodo.deleteUser({ id: 7 });
```

---
Expand Down
6 changes: 3 additions & 3 deletions src/clockodo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1088,11 +1088,11 @@ describe("Clockodo (instance)", () => {
});
});

describe("deactivateUser()", () => {
it("correctly builds deactivateUser() request", async () => {
describe("deleteUser()", () => {
it("correctly builds deleteUser() request", async () => {
const nockScope = nock(CLOCKODO_API).delete("/users/7").reply(200, {});

await clockodo.deactivateUser({ id: 7 });
await clockodo.deleteUser({ id: 7 });

nockScope.done();
});
Expand Down

0 comments on commit 970e82d

Please sign in to comment.