X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Femail.ts;h=05c89d2a38b69b4a891f0c136da978df7e738ae4;hb=25ae21107c6b1fbb99773f11b88b877162f41afe;hp=b01a91d48aea093209641062867b210ee85cb0fc;hpb=ec903c010ecc54ec2acad0bf2cf10e7fbf6a0fa2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/email.ts b/server/tests/api/server/email.ts index b01a91d48..05c89d2a3 100644 --- a/server/tests/api/server/email.ts +++ b/server/tests/api/server/email.ts @@ -123,6 +123,10 @@ describe('Test emails', function () { await resetPassword(server.url, userId, verificationString, 'super_password2') }) + it('Should not reset the password with the same verification string', async function () { + await resetPassword(server.url, userId, verificationString, 'super_password3', 403) + }) + it('Should login with this new password', async function () { user.password = 'super_password2'