Updating test cases now that login has changed a bit.

This commit is contained in:
mike12345567 2021-04-20 17:27:23 +01:00
parent b4c8bf81f7
commit ec3a9db383
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ describe("/authenticate", () => {
describe("fetch self", () => { describe("fetch self", () => {
it("should be able to fetch self", async () => { it("should be able to fetch self", async () => {
const user = await config.createUser("test@test.com", "p4ssw0rd") const user = await config.createUser("test@test.com", "p4ssw0rd")
const headers = await config.login("test@test.com", "p4ssw0rd", { userId: user._id }) const headers = await config.login("test@test.com", "p4ssw0rd", { userId: "us_uuid1" })
const res = await request const res = await request
.get(`/api/self`) .get(`/api/self`)
.set(headers) .set(headers)

View File

@ -305,7 +305,7 @@ class TestConfiguration {
} }
// have to fake this // have to fake this
const user = { const user = {
userId: userId || `ro_ta_users_us_uuid1`, userId: userId || `us_uuid1`,
email: email || EMAIL, email: email || EMAIL,
} }
const app = { const app = {