Open Nagarjuna-S opened 8 years ago
We are using following code for cloudant changes.
var feed = db.follow({include_docs: true, since: "now"}); feed.filter = function (doc, req) { if (doc._deleted || doc.name === "test") { return true; } return false; }; feed.on('change', function (change) { _artifactChange(change); });
feed.follow();
We want to write mocha unit testcases for above code.. Please share us the samples if any one had already written mocha test cases..
Thanks
We are using following code for cloudant changes.
feed.follow();
We want to write mocha unit testcases for above code.. Please share us the samples if any one had already written mocha test cases..
Thanks