Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 15, 2023
1 parent 81bddaa commit 8e341d4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/bsky/tests/admin/get-repo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ describe('admin get repo view', () => {
expect(beforeEmailVerification.emailConfirmedAt).toBeUndefined()
const timestampBeforeVerification = Date.now()
const bobsAccount = sc.accounts[sc.dids.bob]
const verificationToken = await network.pds.ctx.services
.account(network.pds.ctx.db)
.createEmailToken(sc.dids.bob, 'confirm_email')
const verificationToken =
await network.pds.ctx.accountManager.createEmailToken(
sc.dids.bob,
'confirm_email',
)
await agent.api.com.atproto.server.confirmEmail(
{ email: bobsAccount.email, token: verificationToken },
{
Expand Down

0 comments on commit 8e341d4

Please sign in to comment.