(#4720) - http tests work offline
diff --git a/tests/integration/test.http.js b/tests/integration/test.http.js index 409fccb..39245ae 100644 --- a/tests/integration/test.http.js +++ b/tests/integration/test.http.js
@@ -189,15 +189,19 @@ it('4358 db.info rejects when server is down', function() { var db = new PouchDB('http://example.com/foo'); - return db.info().catch(function(err) { - err.name.should.equal('unknown_error'); + return db.info().then(function () { + throw new Error('expected an error'); + }).catch(function(err) { + should.exist(err); }); }); it('4358 db.destroy rejects when server is down', function() { var db = new PouchDB('http://example.com/foo'); - return db.destroy().catch(function(err) { - err.name.should.equal('unknown_error'); + return db.destroy().then(function () { + throw new Error('expected an error'); + }).catch(function(err) { + should.exist(err); }); });