 
 afterTests()
 
-    
-        
+
+


        ->
          JUser.convert client, userFormData, (err) ->
            expect(err).to.not.exist
            queue.next()


    root   : __dirname
    mongo  : mongo
    models : '../../models'

  bongo.once 'dbClientReady', ->

    # creating a session before running tests
    JSession.createSession (err, { session, account }) ->
      clientId                  = session.clientId
      dummyClient.sessionToken  = session.token
      done()


# this function will be called after all tests are executed
afterTests = -> after ->


# here we have actual tests
runTests = -> describe 'workers.social.user.index', ->

  it 'should be able to make mongodb connection', (done) ->

    { serverConfig : { _serverState } } = bongo.getClient()
