Node.js based forum software built for the modern web
test: adjust webfinger test for updated 404 status code
Julian Lam59afd193354b
diff --git a/test/activitypub/webfinger.js b/test/activitypub/webfinger.jsindex c408000e9e..c59cb2c0e1 100644--- a/test/activitypub/webfinger.js+++ b/test/activitypub/webfinger.js@@ -33,12 +33,12 @@ describe('WebFinger endpoint', () => {assert.strictEqual(response.statusCode, 400);});- it('should return 403 Forbidden if the calling user is not allowed to view the user list/profiles', async () => {+ it('should return 404 Not Found if the calling user is not allowed to view the user list/profiles', async () => {await privileges.global.rescind(['groups:view:users'], 'fediverse');const { response } = await request.get(`${nconf.get('url')}/.well-known/webfinger?resource=acct%3a${slug}%40${host}`);assert(response);- assert.strictEqual(response.statusCode, 400);+ assert.strictEqual(response.statusCode, 404);await privileges.global.give(['groups:view:users'], 'fediverse');});