示例#1
0
 beforeExit(function() {
   assert.isNotNull(response);
   assert.equal(200, response.status);
 });
示例#2
0
 test[assertion] = function (err, res, body) {
   assert.isNull(err);
   assert.isNotNull(res.headers[headerName]);
 };
示例#3
0
 "an error should be returned": function(err, result) {
     assert.isNotNull(err);
     assert.equal("Validation of the authentication token in API request failed.", err);
 }
示例#4
0
 'filter printer should be set': function (chart) {
     assert.isNotNull(chart.filterPrinter());
 },
 'should error' : function(err, req) {
   assert.isNotNull(err);
 },
示例#6
0
 'results in information about message' : function(err, result) {
   assert.isNull(err);
   assert.isNotNull(result.MessageId);
 }
示例#7
0
 'there must be no error': function (err, user) {
     assert.isNotNull (err);       
     assert.equal(err, 'There is already a user with that jid');
 },
 'successfully': function(err, response) {
     assert.isNull(err);
     assert.isNotNull(response);
     assert.equal(response.id, 103135);
     assert.equal(response.name, 'Ashley Doe');
 }
 .expect('returns contacts', function(err, res, body) {
     assert.isNull(err);
     var contacts = JSON.parse(body);
     assert.isNotNull(contacts);
     assert.equal(contacts.length, 5);
 })
 'successfully': function(err, response) {
     assert.isNull(err);
     assert.isNotNull(response);
     assert.equal(response.length, 5);
     assert.equal(response[0].id, 103135);
 }
 'successfully': function(err, response) {
     assert.isNull(err);
     assert.isNotNull(response);
     assert.equal(response.length, 4);
     assert.equal(response[0].id, "100002438955325_224550747571079");
 }  
示例#12
0
 "errors": function(err, payload) {
   assert.isNotNull(err);
 },
示例#13
0
 Works.one().then(function (work) {
     assert.isNotNull(work);
     assert.isNull(work.employee);
     next();
 }, next);
示例#14
0
 beforeExit(function() {
   assert.isNotNull(response);
   assert.equal(200, response.status);
   assert.ok(splat, "Should have set 'splat'");
   assert.equal(splat[0], 'world');
 });
示例#15
0
 'brush should be created': function (chart) {
     assert.isNotNull(chart.select("g.brush"));
 },
 .expect('returns newsfeed', function(err, res, body) {
     assert.isNull(err);
     var newsfeed = JSON.parse(body);
     assert.isNotNull(newsfeed);
     assert.equal(newsfeed.length, 3); 
 })
示例#17
0
 'round can be changed': function (chart) {
     chart.round(d3.time.day.round);
     assert.isNotNull(chart.round());
 },
 .expect('returns wall', function(err, res, body) {
     assert.isNull(err);
     var wall = JSON.parse(body);
     assert.isNotNull(wall);
     assert.equal(wall.length, 4); 
 })
示例#19
0
 'should generate something': function(chart) {
     assert.isNotNull(chart);
 },
 .expect("returns the user's profile", function(err, res, body) {
     assert.isNull(err);
     var profile = JSON.parse(body);
     assert.isNotNull(profile);
     assert.equal(profile.id, '100002438955325'); 
 })
示例#21
0
 "should return a valid drone result object": function (err, result) {
   assert.isNull(err);
   assert.isNotNull(result.drone);
   result.process.kill();
 }
示例#22
0
 'y value should have default impl': function (chart) {
     assert.isNotNull(chart.valueAccessor());
 }
示例#23
0
 'we get something': function (pieChart) {
     assert.isNotNull(pieChart);
 },
示例#24
0
 "Can serialize the Bindings object": function(bindings) {
     var serialized = bindings.serialize();
     assert.isNotNull(serialized);
     assert.typeOf(serialized, 'string');
 },
 "should log with the appropriate timestamp": function (_, filename) {
   var data = fs.readFileSync(filename, 'utf8');
   assert.isNotNull(data.match(options.pattern));
 }
示例#26
0
 'margin should be set': function (chart) {
     assert.isNotNull(chart.margins());
 },
示例#27
0
 'verify an error is returned': function(err) {
   assert.isNotNull(err);
 }
示例#28
0
 'y axis should be created': function (chart) {
     assert.isNotNull(chart.yAxis());
 },
示例#29
0
 "an error should be returned": function(err, result) {
     assert.isNotNull(err);
 }
示例#30
0
		'THEN the model should not validate': function ( err, gloms ) {
			assert.isNotNull( err );
		}