Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/integration/test.basics.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ adapters.forEach(function (adapter) {
return new PouchDB(dbs.name).destroy({});
});

it('4339 throw useful error if method called on stale instance', function () {
it('4339 throw useful error if method called on stale instance', function (done) {
var db = new PouchDB(dbs.name);

return db.put({
Expand All @@ -67,6 +67,7 @@ adapters.forEach(function (adapter) {
throw new Error('.get should return an error');
}, function (err) {
should.equal(err instanceof Error, true, 'should be an error');
done();
});
});

Expand Down