From 7b4d461bb9d033a1fb2810972f4ea9f3f47f6992 Mon Sep 17 00:00:00 2001 From: zkldi Date: Sat, 26 Jun 2021 02:19:29 +0100 Subject: [PATCH] 401 -> 403 --- server/src/test-utils/api-common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test-utils/api-common.ts b/server/src/test-utils/api-common.ts index 4dd1ed093..021b0bc26 100644 --- a/server/src/test-utils/api-common.ts +++ b/server/src/test-utils/api-common.ts @@ -11,7 +11,7 @@ export function RequireNeutralAuthentication(url: string, method: "GET" | "POST" res = await mockApi.post(url); } - t.equal(res.status, 401, "Should return 401 immediately."); + t.equal(res.status, 403, "Should return 403 immediately."); t.equal( res.body.description, "You are not authorised to perform this action.",