Revert to last reasonable code
diff --git a/packages/node_modules/pouchdb-checkpointer/src/index.js b/packages/node_modules/pouchdb-checkpointer/src/index.js
index 6e4273e..774fb4c 100644
--- a/packages/node_modules/pouchdb-checkpointer/src/index.js
+++ b/packages/node_modules/pouchdb-checkpointer/src/index.js
@@ -138,7 +138,6 @@
return self.src.get(self.id).then(function (sourceDoc) {
return sourceDoc.last_seq || LOWEST_SEQ;
}).catch(function (err) {
- /* istanbul ignore if */
if (err.status !== 404) {
throw err;
}
diff --git a/tests/integration/test.replication.js b/tests/integration/test.replication.js
index a67d20f..59ff4cb 100644
--- a/tests/integration/test.replication.js
+++ b/tests/integration/test.replication.js
@@ -736,17 +736,7 @@
var expectedSince = false;
interceptChanges(db, function (opts) {
if (expectedSince !== false) {
- if (!opts || !opts.since) {
- return;
- }
- if (opts.since instanceof 'number') {
- opts.since.should.equal(expectedSince);
- } else {
- // for now, we just want to passssss!!!
-// opts.since.should.match(new RegExp(`^${expectedSince}-`,
-// `Failed to match ${opts.since} with ${expectedSince}.`));
- opts.since.should.not.equal(expectedSince);
- }
+ opts.since.should.equal(expectedSince);
expectedSince = false;
}
});
@@ -762,7 +752,7 @@
.then(function () {
expectedSince = 1;
PouchDB.replicate(db, remote)
- .on('error', () => done('Something got caught here!', Array.prototype.slice.apply(arguments)))
+ .on('error', done)
.on('complete', function (result) {
result.docs_read.should.equal(1);
result.docs_written.should.equal(1);