From d2bbbccc945db0059ef2a99b6eed4eadaf22bce0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 21 Oct 2024 07:16:12 +0300 Subject: vnext: configure test environment --- vnext/server/middleware/webfinger.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vnext') diff --git a/vnext/server/middleware/webfinger.spec.js b/vnext/server/middleware/webfinger.spec.js index efdfff20..d1b198e6 100644 --- a/vnext/server/middleware/webfinger.spec.js +++ b/vnext/server/middleware/webfinger.spec.js @@ -4,16 +4,16 @@ import { app } from '../app' describe('WebFinger middleware', () => { it('Existing user response should have a subject and links', async () => { - const resource = 'acct:ugnich@juick.com' + const resource = 'acct:ugnich@example.lan' const response = await request(app) .get(`/.well-known/webfinger?resource=${resource}`) expect(response.status).toStrictEqual(200) expect(response.body.subject).toStrictEqual(resource) expect(response.body.links.length).toStrictEqual(1) - expect(response.body.links[0].href).toStrictEqual('https://juick.com/u/ugnich') + expect(response.body.links[0].href).toStrictEqual('https://example.lan/u/ugnich') }) it('Unknown user should return 404', async () => { - const resource = 'acct:durov@juick.com' + const resource = 'acct:durov@example.lan' const response = await request(app) .get(`/.well-known/webfinger?resource=${resource}`) expect(response.status).toStrictEqual(404) -- cgit v1.2.3