From c0e5d214dc43622d6ea333338c4bc7f1cb4a09c0 Mon Sep 17 00:00:00 2001 From: Jake Luer Date: Thu, 26 Jan 2012 19:13:41 -0500 Subject: [PATCH] simple .use function. See #9. --- lib/chai.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/chai.js b/lib/chai.js index 7409155..53b8f61 100644 --- a/lib/chai.js +++ b/lib/chai.js @@ -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,