Skip to content

Commit 4de8ae8

Browse files
committed
test(auth): make the mismatched proof always differ from the real one
The mismatch case changed the proof's last character to x, which equals the real proof whenever the random proof already ends in x. Claude-Session: https://claude.ai/code/session_01FEkQ5nNrLRm8ssuwWcBVcw Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2d7ac40 commit 4de8ae8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/plugins/plugin-auth/src/invitation-one-step-acceptance-34257.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ describe('#34257 — accepting with the proof', () => {
320320
const { engine, manager, invite } = await boot();
321321
const { invitation, proof } = await invite('guarded@example.com');
322322
await expectRefused(
323-
await door(manager, { invitationId: invitation.id, proof: `${proof.slice(0, -1)}x`, name: 'G', password: PASSWORD }),
323+
await door(manager, { invitationId: invitation.id, proof: `${proof.slice(0, -1)}${proof.endsWith('x') ? 'y' : 'x'}`, name: 'G', password: PASSWORD }),
324324
);
325325
expect(userRow(engine, 'guarded@example.com')).toBeUndefined();
326326
const good = await door(manager, { invitationId: invitation.id, proof, name: 'G', password: PASSWORD });

0 commit comments

Comments
 (0)