"it works": function(err, feed) {
     assert.ifError(err);
     assert.isObject(feed);
 },
示例#2
0
 "they can see the bto": function(err, act) {
     assert.ifError(err);
     assert.isObject(act);
     assert.isTrue(act.hasOwnProperty("bto"));
 }
示例#3
0
 '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+/);
 },
示例#4
0
 "returning Article instances": function (article) {
   assert.isObject(article);
   assert.equal(article.constructor, this.constructor);
   assert.equal(article.data, 41);
 },
示例#5
0
 "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');
 },
示例#6
0
 "it should have the correct methods defined": function () {
   assert.isFunction(nexpect.spawn);
   assert.isObject(nexpect.nspawn);
   assert.isFunction(nexpect.nspawn.spawn);
 },
示例#7
0
 "should respond with a Resource instance": function (e, obj) {
   assert.isObject(obj);
   assert.instanceOf(obj, resourceful.Resource);
   assert.equal(obj.constructor, this.Factory);
 },
示例#8
0
 "it works": function(err, stream) {
     assert.ifError(err);
     assert.isObject(stream);
     assert.instanceOf(stream, Stream);
 },
示例#9
0
			'should create a "di" property object to hold injected dependencies': function (t)
			{
				assert.isObject(t.di);
			}
示例#10
0
 'fails when a job comes along': function(err, response) {
   assert.isObject(err);
   assert.isTrue(err.token_mismatch);
 }
示例#11
0
 'the worker errors': function(err, response) {
   assert.isObject(err);
   assert.isTrue(err.token_mismatch);
 }
示例#12
0
			'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);
 },
示例#16
0
文件: xml-test.js 项目: mikeycgto/d3
 "triggers error event on unsuccessful status": function(req) {
   assert.isObject(req);
   assert.equal(404, req.status);
 }
示例#17
0
 "should respond with error": function (err) {
   assert.isObject(err);
 }
 "it should return an error ": function (_, err) {
   assert.isObject(err);
 },
示例#19
0
 "should respond to toJSON()": function (r) {
   assert.isObject(r.toJSON());
 },
示例#20
0
 "should respond with JSON headers": function (err, res, body) {
   assert.isNull(err);
   assert.equal(res.statusCode, 200);
   assert.isObject(JSON.parse(body));
 }
示例#21
0
 "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');
 }
示例#23
0
 "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);
 }
示例#25
0
 "they can't see the bcc": function(err, act) {
     assert.ifError(err);
     assert.isObject(act);
     assert.isFalse(act.hasOwnProperty("bcc"));
 }
示例#26
0
 'Has a `active_intervals` function that returns a list of named intervals': function(agg) {
     assert.isFunction(agg.active_intervals);
     assert.isObject(agg.active_intervals())
 },
示例#27
0
 "it works": function(err, cl) {
     assert.ifError(err);
     assert.isObject(cl);
 },
示例#28
0
 "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);
 }
示例#29
0
 '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");
 }