1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00

fixing tests

This commit is contained in:
Martin McKeaveney 2020-06-03 20:54:17 +01:00
parent e74c685956
commit 9581bec421

View file

@ -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