Skip to content

Commit

Permalink
chore: update user.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
brunotot committed Sep 1, 2024
1 parent a5657c3 commit 41e8440
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/app-node-express/test/user.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ describe("user", () => {
describe("given the user does not exist", () => {
it("should return a 404", async () => {
const nonExistingUsername = "usernameWhichShouldFail";
throw new Error("Test");

Check failure on line 9 in packages/app-node-express/test/user.test.ts

View workflow job for this annotation

GitHub Actions / test-app-node-express

test/user.test.ts > user > get user route > given the user does not exist > should return a 404

Error: Test ❯ test/user.test.ts:9:15
await supertest(globalThis.expressApp)
.get(`/users/findOneByUsername?username=${nonExistingUsername}`)
.expect(404);
Expand Down

0 comments on commit 41e8440

Please sign in to comment.