chai/lib/chai.js

27 lines
653 B
JavaScript
Raw Normal View History

/*!
* chai
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
* MIT Licensed
*/
2011-12-07 05:25:52 +00:00
var exports = module.exports = {};
2012-01-02 06:14:24 +00:00
exports.version = '0.1.6';
2011-12-07 05:25:52 +00:00
exports.expect = require('./interface/expect');
2011-12-07 05:25:52 +00:00
exports.assert = require('./interface/assert');
2011-12-15 10:30:39 +00:00
exports.should = require('./interface/should');
2011-12-07 05:25:52 +00:00
exports.Assertion = require('./assertion');
2011-12-15 10:54:23 +00:00
exports.AssertionError = require('./error');
exports.fail = function (actual, expected, message, operator, stackStartFunction) {
throw new exports.AssertionError({
message: message,
actual: actual,
expected: expected,
operator: operator,
stackStartFunction: stackStartFunction
});
2011-12-16 11:59:45 +00:00
};