diff --git a/packages/server/src/api/routes/tests/auth.spec.js b/packages/server/src/api/routes/tests/auth.spec.js index 5978381f86..fa307bf96f 100644 --- a/packages/server/src/api/routes/tests/auth.spec.js +++ b/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) diff --git a/packages/server/src/tests/utilities/TestConfiguration.js b/packages/server/src/tests/utilities/TestConfiguration.js index e4510905b5..0f036647bf 100644 --- a/packages/server/src/tests/utilities/TestConfiguration.js +++ b/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 = {