diff --git a/client/lib/onboarding.integration.spec.ts b/client/lib/onboarding.integration.spec.ts index 5892a154..512f87a3 100644 --- a/client/lib/onboarding.integration.spec.ts +++ b/client/lib/onboarding.integration.spec.ts @@ -135,8 +135,8 @@ describe("onboarding passport flow", () => { bio: "Building awesome experiences", }); - const hydratedProfile = await aethexUserService.getCurrentUser(); - expect(checkProfileComplete(hydratedProfile)).toBe(true); + const hydratedProfile = (await mockAuth.getUserProfile(user.id as any)) as AethexUserProfile; + expect(checkProfileComplete(hydratedProfile as any)).toBe(true); await mockAuth.linkIdentity({ provider: "github" }); const refreshedUser = (await mockAuth.getUser()).data.user;