mirror of
https://github.com/chaijs/chai
synced 2024-11-15 08:17:14 +00:00
27 lines
No EOL
652 B
JavaScript
27 lines
No EOL
652 B
JavaScript
/*!
|
|
* chai
|
|
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
|
* MIT Licensed
|
|
*/
|
|
|
|
var exports = module.exports = {};
|
|
|
|
exports.version = '0.1.0';
|
|
|
|
exports.expect = require('./interface/expect');
|
|
exports.assert = require('./interface/assert');
|
|
exports.should = require('./interface/should');
|
|
|
|
|
|
exports.Assertion = require('./assertion');
|
|
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
|
|
});
|
|
} |