       it 'with empty options', ->
         { request } = context
         arg0 = request.getCall(0).args[0]
-        assert.isEmpty arg0 if arg0
+        assert.strictEqual Object.keys(arg0).length, 0 if arg0
       context
 
     returningRequestObject = (context = {}) ->

          ///.test(js.fn)

    describe 'with data emitter', ->
      context = factory data: on: sinon.stub()
      'should call connector.request': ->
        calledOnce withEmptyOptions returningRequestObject context

    describe 'with callback', ->
      callback = sinon.stub()

      describe 'should call request.on', ->
        { requestObject, callback } = context

        it 'with error callback', ->
          assert.ok requestObject.on.calledWith 'error', callback

        it 'with response callback', ->
          assert.ok requestObject.on.calledWith 'response'

        describe 'with response handler to', ->
