Port old JS Spec tests to Mocha

Changes that happened to jquery.couch.js which were not
reflected by the current failing JSpec Testsuite and
required changes to the testuite:

 - jquery.couch returns the time for the request and not an
   object with an url property
 - jquery.couch does not show alerts any more
 - success callbacks don't return a status any more
 - db.copyDoc expects an docid as target in the first option object,
   not a third parameter with an `Destination` property

COUCHDB-1566
6 files changed
tree: 1d19d8dbf9fe6e42319ce4bda5eb8c8978894751
  1. libs/
  2. test/
  3. .gitignore
  4. bower.json
  5. jquery.couch.js
  6. LICENSE
  7. README.md
README.md

couchdb-jquery-couch

$.couch is used to communicate with a CouchDB server.

Tests

Install the dependencies:

$ bower install

Enable CORS:

curl -X PUT http://localhost:5984/_config/httpd/enable_cors -d '"true"'
curl -X PUT http://localhost:5984/_config/cors/origins -d '"*"'

Restart CouchDB & open test/runner.html in a browser to run the testsuite.