Browse Source

Updating test cases now that login has changed a bit.

pull/1392/head
mike12345567 5 years ago
parent
commit
f6425524a4
  1. 2
      packages/server/src/api/routes/tests/auth.spec.js
  2. 2
      packages/server/src/tests/utilities/TestConfiguration.js

2
packages/server/src/api/routes/tests/auth.spec.js

@ -28,7 +28,7 @@ describe("/authenticate", () => {
describe("fetch self", () => {
it("should be able to fetch self", async () => {
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
.get(`/api/self`)
.set(headers)

2
packages/server/src/tests/utilities/TestConfiguration.js

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

Loading…
Cancel
Save