Example #1
0
 setTimeout(function() {
   assert(el)
   assert(el instanceof Element)
   assert(data)
   assert(typeof data === "object")
   assert(typeof data.exec === "function")
   done()
 }, 0)
Example #2
0
File: tests.js Project: ericgj/rest
 listAll.get({}).end( function(err,obj,res){
   // console.log("object: %o", obj);
   assert(!err, "Got error response" + err);
   obj.contactLists.each( function(c) { assert.equal(c.constructor, ContactList); });
   assert.equal(0,obj.page);
   assert('obj.total > 0');
   done();
 })
Example #3
0
File: tests.js Project: ericgj/rest
 listOne.get().end( function(err,obj,res){
   assert(!err, "Got error response" + err);
   assert.equal(obj.contactList.constructor, ContactList);
   obj.contacts.each( function(c) { assert.equal(c.constructor, Contact); });
   done();
 })
Example #4
0
 app.done = function thisFn(el, data) {
   assert(data.get === app.user)
   done()
 }