X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Femail.ts;h=05c89d2a38b69b4a891f0c136da978df7e738ae4;hb=20dcfd74982f4ec8a143696abed02b059d30d9ec;hp=9c329961810554c3bc2a2c0358a2e9469dc6e3b8;hpb=4f32032fed8587ea97d45e235b167e8958efd81f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/email.ts b/server/tests/api/server/email.ts index 9c3299618..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' @@ -180,7 +184,7 @@ describe('Test emails', function () { }) }) - describe('When creating a video abuse', function () { + describe('When creating an abuse', function () { it('Should send the notification email', async function () { this.timeout(10000)