simple .use function. See #9.

This commit is contained in:
Jake Luer 2012-01-26 19:13:41 -05:00
parent 597494493f
commit c0e5d214dc

View file

@ -16,6 +16,13 @@ exports.should = require('./interface/should');
exports.Assertion = require('./assertion');
exports.AssertionError = require('./error');
exports.inspect = require('./utils/inspect');
exports.use = function (fn) {
fn(this);
return this;
};
exports.fail = function (actual, expected, message, operator, stackStartFunction) {
throw new exports.AssertionError({
message: message,