From 9581bec421e352904fbf333787fc742935fd11e4 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 3 Jun 2020 20:54:17 +0100 Subject: [PATCH] fixing tests --- packages/server/src/api/routes/tests/couchTestUtils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/server/src/api/routes/tests/couchTestUtils.js b/packages/server/src/api/routes/tests/couchTestUtils.js index d382a2108e..f70fc0ced1 100644 --- a/packages/server/src/api/routes/tests/couchTestUtils.js +++ b/packages/server/src/api/routes/tests/couchTestUtils.js @@ -176,8 +176,7 @@ const createUserWithPermissions = async ( const designDoc = await db.get("_design/database") const loginResult = await request - .post(`/api/authenticate`) - .set("Referer", `http://localhost:4001/${designDoc.metadata.applicationId}`) + .post(`/${designDoc.metadata.applicationId}/api/authenticate`) .send({ username, password }) // returning necessary request headers