"it works": function(err, feed) { assert.ifError(err); assert.isObject(feed); },
"they can see the bto": function(err, act) { assert.ifError(err); assert.isObject(act); assert.isTrue(act.hasOwnProperty("bto")); }
'rect width is correct (not -infinity)': function (chart) { assert.isObject(chart); if (group == valuePosValSumGroup) assert.match(d3.select(chart.selectAll("g.row rect")[0][0]).attr("width"), /0\.9\d+/); },
"returning Article instances": function (article) { assert.isObject(article); assert.equal(article.constructor, this.constructor); assert.equal(article.data, 41); },
"the `properties` accessor returns an object with only the '_id' property": function (r) { assert.isObject(r.properties); assert.equal(Object.keys(r.properties).length, 1); assert.include(r.properties, '_id'); },
"it should have the correct methods defined": function () { assert.isFunction(nexpect.spawn); assert.isObject(nexpect.nspawn); assert.isFunction(nexpect.nspawn.spawn); },
"should respond with a Resource instance": function (e, obj) { assert.isObject(obj); assert.instanceOf(obj, resourceful.Resource); assert.equal(obj.constructor, this.Factory); },
"it works": function(err, stream) { assert.ifError(err); assert.isObject(stream); assert.instanceOf(stream, Stream); },
'should create a "di" property object to hold injected dependencies': function (t) { assert.isObject(t.di); }
'fails when a job comes along': function(err, response) { assert.isObject(err); assert.isTrue(err.token_mismatch); }
'the worker errors': function(err, response) { assert.isObject(err); assert.isTrue(err.token_mismatch); }
'returns object': function(err, result) { assert.isNull(err); assert.isObject(result['/organizations']); assert.isObject(result['/projects']); }
"the email is not included": function(err, message, user) { assert.ifError(err); assert.isObject(user); assert.isFalse(_.include(user, "email")); },
"it works correctly": function(err, message, user) { assert.ifError(err); assert.isObject(user); assert.isObject(message); },
'should set json property' : function(err, profile) { assert.isObject(profile._json); },
"triggers error event on unsuccessful status": function(req) { assert.isObject(req); assert.equal(404, req.status); }
"should respond with error": function (err) { assert.isObject(err); }
"it should return an error ": function (_, err) { assert.isObject(err); },
"should respond to toJSON()": function (r) { assert.isObject(r.toJSON()); },
"should respond with JSON headers": function (err, res, body) { assert.isNull(err); assert.equal(res.statusCode, 200); assert.isObject(JSON.parse(body)); }
"should create the record in the db": function (e, res) { assert.isObject(this.Factory.connection.store['99']); assert.equal(this.Factory.connection.store['99'].age, 30); }
"should add the properties to the object": function (err, obj) { assert.isNull(err); assert.isObject(obj); assert.equal(obj.foo, 'foo'); assert.equal(obj.bar, 'bar'); }
"should respond with an Article instance": function (e, obj) { assert.isObject(obj); assert.instanceOf(obj, resourceful.resources.Article); assert.equal(obj.constructor, resourceful.resources.Article); assert.equal(obj.resource, 'Article'); },
"should prompt with an error": function (_, prop, input) { assert.isObject(prop); assert.equal(input, ''); assert.isTrue(this.errmsg.indexOf('Invalid input') !== -1); assert.isTrue(this.msg.indexOf('notblank') !== -1); }
"they can't see the bcc": function(err, act) { assert.ifError(err); assert.isObject(act); assert.isFalse(act.hasOwnProperty("bcc")); }
'Has a `active_intervals` function that returns a list of named intervals': function(agg) { assert.isFunction(agg.active_intervals); assert.isObject(agg.active_intervals()) },
"it works": function(err, cl) { assert.ifError(err); assert.isObject(cl); },
"should copy the properties to the instance": function (job) { assert.equal(job.name, 'testJob'); assert.equal(job.someProp, true); assert.isObject(job.someObj); assert.isString(job.someObj.aparam); }
'we get something': function (chart) { assert.isObject(chart); },
"the email address is included": function(err, user) { assert.ifError(err); assert.isObject(user); assert.include(user, "email"); }