Skip to content

Commit 7545659

Browse files
committed
fix: remove incorrect test
1 parent 7a0f6b7 commit 7545659

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

apps/web/src/server/modules/auth/__tests__/auth.service.spec.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,6 @@ describe('auth.service', () => {
4444
})
4545
})
4646

47-
it('should reset attempts when sending new OTP for existing codeChallenge', async () => {
48-
const email = '[email protected]'
49-
const codeChallenge = 'test-codeChallenge-123'
50-
51-
// First login
52-
await emailLogin({ email, codeChallenge })
53-
54-
const vfnIdentifier = createVfnIdentifier({ email, codeChallenge })
55-
// Simulate failed attempts
56-
await db.verificationToken.update({
57-
where: { identifier: vfnIdentifier },
58-
data: { attempts: 3 },
59-
})
60-
61-
// Second login should reset attempts
62-
await emailLogin({ email, codeChallenge })
63-
64-
const token = await db.verificationToken.findUnique({
65-
where: { identifier: vfnIdentifier },
66-
})
67-
expect(token?.attempts).toBe(0)
68-
})
69-
7047
it('should throw when code challenge is reused', async () => {
7148
const email = '[email protected]'
7249
const codeChallenge = 'test-codeChallenge-123'

0 commit comments

Comments
 (0)