mirror of
https://github.com/chaijs/chai
synced 2024-11-15 08:17:14 +00:00
simple .use function. See #9.
This commit is contained in:
parent
597494493f
commit
c0e5d214dc
1 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue