Skip to content

Commit a3e047f

Browse files
committed
fix: add 401 to expected status codes for unauthenticated match endpoint
The /matches/current-match/:serverId endpoint returns 401 when no authentication is provided.
1 parent 4c3a086 commit a3e047f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/matches.e2e-spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ describe("Matches (e2e)", () => {
2626
const response = await request(app.getHttpServer())
2727
.get("/matches/current-match/nonexistent-server");
2828

29-
// Without a valid server ID, should return 404 or error
30-
expect([400, 404, 500]).toContain(response.status);
29+
// Without a valid server ID, should return 401, 404, or error
30+
expect([400, 401, 404, 500]).toContain(response.status);
3131
});
3232
});
3333

0 commit comments

Comments
 (0)