Use user service to hydrate profile in test
cgen-f12f39580e1b4b2daa8b4e035edae7f6
This commit is contained in:
parent
869321b9e1
commit
f3dd19c0e8
1 changed files with 3 additions and 2 deletions
|
|
@ -325,9 +325,10 @@ describe("onboarding passport flow", () => {
|
|||
bio: "Building awesome experiences",
|
||||
});
|
||||
|
||||
const hydratedProfile = (await mockAuth.getUserProfile(
|
||||
user.id as any,
|
||||
const hydratedProfile = (await aethexUserService.getProfileById(
|
||||
user.id,
|
||||
)) as AethexUserProfile;
|
||||
expect(hydratedProfile).toBeTruthy();
|
||||
expect(checkProfileComplete(hydratedProfile as any)).toBe(true);
|
||||
|
||||
await mockAuth.linkIdentity({ provider: "github" });
|
||||
|
|
|
|||
Loading…
Reference in a new issue