 
     queue = [
 
-      ->
+      (next) ->
         # generating a new certificate and saving it
         certificate1 = new JPasswordRecovery
           email        : email

  generateResetRequestParams }    = require '../../../testhelper/handler/resethelper'
{ generateRegisterRequestParams } = require '../../../testhelper/handler/registerhelper'

JUser                             = require '../../../models/user'
JPasswordRecovery                 = require '../../../models/passwordrecovery'


beforeTests = before (done) ->

        recoveryToken : generateRandomString()

    request.post resetRequestParams, (err, res, body) ->
      expect(err).to.not.exist
      expect(res.statusCode).to.be.equal 400
      expect(body).to.be.equal 'Invalid token.'
      done()


