Skip to content

Commit

Permalink
pouchdb#6230 Add error handler to isPouchDbServer()
Browse files Browse the repository at this point in the history
  • Loading branch information
dharders committed Nov 21, 2017
1 parent 6c82cef commit 532b2ed
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/integration/utils.js
Expand Up @@ -199,8 +199,12 @@ testUtils.isCouchDB = function (cb) {
};

testUtils.isPouchDbServer = function (cb) {
testUtils.ajax({url: testUtils.couchHost() + '/' }, function (err, res) {
cb('express-pouchdb' in res);
testUtils.ajax({ url: testUtils.couchHost() + '/' }, function (err, res) {
if (err || !res) {
return cb(false);
} else {
return cb('express-pouchdb' in res);
}
});
};

Expand Down

0 comments on commit 532b2ed

Please sign in to comment.