           name : ''
 
       request.post  verifySlugRequestParams, (err, res, body) ->
-        expect(err)             .to.not.exist
-        expect(res.statusCode)  .to.be.equal 400
-        expect(body)            .to.be.equal 'No domain param is given!'
+        expect(err).to.not.exist
+        expect(res.statusCode).to.be.equal 400
+        expect(body).to.be.equal 'No domain param is given!'
         done()
 
 


      queue = [

        ->
          options = { body : { slug } }
          generateCreateTeamRequestParams options, (createTeamRequestParams) ->

            # expecting team to be created
            request.post createTeamRequestParams, (err, res, body) ->
              expect(err)             .to.not.exist
              expect(res.statusCode)  .to.be.equal 200
              queue.next()

        ->
          # expecting HTTP 400 when domain is taken
          request.post verifySlugRequestParams, (err, res, body) ->
            expect(err)             .to.not.exist
            expect(res.statusCode)  .to.be.equal 400
            expect(body)            .to.be.equal 'Domain is taken!'
            queue.next()

        -> done()

      ]

      daisy queue


  describe 'when domain is a reserved one', ->


      # expecting HTTP 400 when domain is taken
      request.post verifySlugRequestParams, (err, res, body) ->
        expect(err).to.not.exist
        expect(res.statusCode).to.be.equal 400
        expect(body).to.be.equal 'Invalid domain!'
        done()


beforeTests()

runTests()
