This unexpected plugin enables unit testing requests against a mock couchdb server.
It leverages unexpected-mitm and the mock-couch library integrating them into a neat assertion. Teh structure of the database is specified declaratively and appropriate responses generated automatically.
The following example uses unexpected-http to assert the generated response is valid.
var expect = ;expect;expect;;
Licensed under a standard 3-clause BSD license -- see the
LICENSE file for details.