Accounts: product tests (sign out everywhere, back-channel calls, deletion, export, Connect, admin), lib tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -97,7 +97,7 @@ describe('two-factor', () => {
|
||||
test('someone with 2FA by email enters the emailed code; a recovery code works instead', async () => {
|
||||
const a = await h.makeAccount({ email: 'lerato@hope.test', password: 'Correct-horse-3', twoFactorMethod: 'email' });
|
||||
const { replaceRecoveryCodes } = await import('../src/accounts/twoFactor.js');
|
||||
const codes = await replaceRecoveryCodes(h.ctx, a.id);
|
||||
const codes = await replaceRecoveryCodes(h.ctx, a.id as string);
|
||||
|
||||
const browser = new Browser();
|
||||
const r = await h.signIn(browser, 'lerato@hope.test', 'Correct-horse-3');
|
||||
|
||||
Reference in New Issue
Block a user