Browse Source

Add `.pass()` method for generating passing assertions

babel-plugin-for-integration-tests
Kevin Martensson 10 years ago
committed by Sindre Sorhus
parent
commit
d71bd67062
  1. 14
      lib/test.js

14
lib/test.js

@ -308,6 +308,20 @@ Test.prototype.error = function (err, msg) {
}); });
}; };
/**
* Generate a passing assertion
*
* @param {String} msg
* @api public
*/
Test.prototype.pass = function (msg) {
this._assert(true, {
message: msg,
operator: 'pass'
});
};
/** /**
* Generate a failing assertion * Generate a failing assertion
* *

Loading…
Cancel
Save