Use mockAuth profile in integration test
cgen-63261292e53e40a688f78b61e24f4246
This commit is contained in:
parent
d313d64dab
commit
2fb9c140d0
1 changed files with 2 additions and 2 deletions
|
|
@ -135,8 +135,8 @@ describe("onboarding passport flow", () => {
|
||||||
bio: "Building awesome experiences",
|
bio: "Building awesome experiences",
|
||||||
});
|
});
|
||||||
|
|
||||||
const hydratedProfile = await aethexUserService.getCurrentUser();
|
const hydratedProfile = (await mockAuth.getUserProfile(user.id as any)) as AethexUserProfile;
|
||||||
expect(checkProfileComplete(hydratedProfile)).toBe(true);
|
expect(checkProfileComplete(hydratedProfile as any)).toBe(true);
|
||||||
|
|
||||||
await mockAuth.linkIdentity({ provider: "github" });
|
await mockAuth.linkIdentity({ provider: "github" });
|
||||||
const refreshedUser = (await mockAuth.getUser()).data.user;
|
const refreshedUser = (await mockAuth.getUser()).data.user;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue