Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

got tests working

  • Loading branch information...
commit 36482774d0190b285cf0fe83ab221f6723edc5c2 1 parent 0d190ad
@jchris authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 test/couch.html
View
10 test/couch.html
@@ -69,13 +69,19 @@ <h2 id="qunit-userAgent"></h2>
var tmpl = "<p>Hello {{key}}</p>";
var call_count = 0;
var appStub = {};
+ $.ajax = function(opt) {
+ if (call_count++ > 1) return;
+ setTimeout(function() {
+ opt.complete()
+ },1);
+ console.log()
+ };
appStub.view = function(n, q, doc) {
- (call_count++)
setTimeout(function() {
q.success({
rows:[{id:"foo",key:"bar",value:null}]
});
- },100);
+ },1);
};
appStub.db = {
name : "foobar",
Please sign in to comment.
Something went wrong with that request. Please try again.