Updating test cases now that login has changed a bit.
This commit is contained in:
parent
b4c8bf81f7
commit
ec3a9db383
|
@ -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)
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue