text: 'use strict';
  
  var adapters = ['http', 'local'];
  
  
  adapters.forEach(function (adapter) {
  
    describe('test.ajax.js-' + adapter, function () {
  
      it('#5061 ajax returns ETIMEDOUT error on timeout', function (done) {
        this.timeout(240000);
        PouchDB.ajax({
          method: 'GET',
          url: 'http://192.0.2.1/',
          timeout: 10
        }, function (err, res) {
          // here's the test, we should get an 'err' response
          should.exist(err);
          err.status.should.equal(400);
          err.message.should.equal('ETIMEDOUT');
          should.not.exist(res);
          done();
        });
      });
    });
  });
  
  