- await resetPassword(server.url, userId, verificationString, 'super_password2')
+ await server.users.resetPassword({ userId, verificationString, password: 'super_password2' })
+ })
+
+ it('Should not reset the password with the same verification string', async function () {
+ await server.users.resetPassword({
+ userId,
+ verificationString,
+ password: 'super_password3',
+ expectedStatus: HttpStatusCode.FORBIDDEN_403
+ })