Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to write mocha unit testcase for db.follow() #85

Open
Nagarjuna-S opened this issue Jul 14, 2016 · 0 comments
Open

How to write mocha unit testcase for db.follow() #85

Nagarjuna-S opened this issue Jul 14, 2016 · 0 comments

Comments

@Nagarjuna-S
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant