       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 = {}) ->


  describe '#constructor()', ->

    shouldUsePort = (options) -> ->
      connector = new Connector options
      port = options?.port or 5984
      it "should use port #{port}", ->

    connector = new Connector connector: close: close
    connector.close callback

    it 'should callback underlying connector.close', ->
      assert.ok close.calledOnce
      assert.ok close.calledWith callback

