Skip to content

Commit

Permalink
Update newUser.spec.ts with additional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sinatragianpaolo committed Mar 12, 2024
1 parent bf1e24c commit 2b841a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/users/me/_get/newUser.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe("Route GET users-me - New User", () => {
is_verified: false,
});
});
//additional fields
//all additional fieldss
it("Should return id, role if use ?fields=role parameter", async () => {
const response = await request(app)
.get(`/users/me?fields=role`)
Expand Down Expand Up @@ -314,7 +314,6 @@ describe("Route GET users-me - New User", () => {
attended_cp: 0,
});
});
//approved_bugs
it("Should return id, role and approved_bugs if use ?fields=approved_bugs parameter", async () => {
const response = await request(app)
.get(`/users/me?fields=approved_bugs`)
Expand Down

0 comments on commit 2b841a6

Please sign in to comment.