We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cd7932 commit e3add8dCopy full SHA for e3add8d
test/plugins/auth.test.ts
@@ -41,8 +41,8 @@ await suite("auth plugin", async () => {
41
Authorization: "[invalid authorization header]",
42
},
43
});
44
- // Unauthorized
45
- assert.equal(response.statusCode, 401);
+ // Bad Request
+ assert.equal(response.statusCode, 400);
46
47
await test("invalid authorization scheme", async () => {
48
const response = await fastify.inject({
@@ -52,8 +52,8 @@ await suite("auth plugin", async () => {
52
Authorization: "Basic INVALID",
53
54
55
56
57
58
await test("invalid token", async () => {
59
0 commit comments