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:
2026-11-18 13:36:18 +02:00
co-authored by Claude Opus 5.5
parent 069b66fd30
commit a888260f01
5 changed files with 312 additions and 2 deletions
+1 -1
View File
@@ -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');