 
       queue = [
 
-        ->
+        (next) ->
           confirmRequestParams = generateConfirmRequestParams
             qs : { token : jwtToken }
 

{ daisy
  expect
  request
  generateRandomString

            expect(err).to.not.exist
            expect(res.statusCode).to.be.equal 200
            expect(body).not.to.be.empty
            next()

        (next) ->
          # expecting a session to be created
          JSession.one { username, groupName }, (err, session) ->
            expect(err).to.not.exist
            expect(session).to.exist
            next()

      ]

      async.series queue, done


beforeTests()
