Sha256: cea74b44c8303fc783ab6c6667bdd309413f136954d4091b961c8f1937bfcab5

Contents?: true

Size: 1.12 KB

Versions: 27

Compression:

Stored size: 1.12 KB

Contents

/*!
 * chai
 * Copyright(c) 2011-2013 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */

var used = []
  , exports = module.exports = {};

/*!
 * Chai version
 */

exports.version = '1.8.1';

/*!
 * Assertion Error
 */

exports.AssertionError = require('assertion-error');

/*!
 * Utils for plugins (not exported)
 */

var util = require('./chai/utils');

/**
 * # .use(function)
 *
 * Provides a way to extend the internals of Chai
 *
 * @param {Function}
 * @returns {this} for chaining
 * @api public
 */

exports.use = function (fn) {
  if (!~used.indexOf(fn)) {
    fn(this, util);
    used.push(fn);
  }

  return this;
};

/*!
 * Primary `Assertion` prototype
 */

var assertion = require('./chai/assertion');
exports.use(assertion);

/*!
 * Core Assertions
 */

var core = require('./chai/core/assertions');
exports.use(core);

/*!
 * Expect interface
 */

var expect = require('./chai/interface/expect');
exports.use(expect);

/*!
 * Should interface
 */

var should = require('./chai/interface/should');
exports.use(should);

/*!
 * Assert interface
 */

var assert = require('./chai/interface/assert');
exports.use(assert);

Version data entries

27 entries across 14 versions & 1 rubygems

Version Path
ende-0.2.3 vendor/assets/components/chaijs-chai/lib/chai.js
ende-0.2.3 vendor/components/chaijs-chai/lib/chai.js
ende-0.2.2 vendor/assets/components/chaijs-chai/lib/chai.js
ende-0.2.2 vendor/components/chaijs-chai/lib/chai.js
ende-0.2.1 vendor/assets/components/chaijs-chai/lib/chai.js
ende-0.2.1 vendor/components/chaijs-chai/lib/chai.js
ende-0.2.0 vendor/components/chaijs-chai/lib/chai.js
ende-0.2.0 vendor/assets/components/chaijs-chai/lib/chai.js
ende-0.1.14 vendor/assets/components/chaijs-chai/lib/chai.js
ende-0.1.14 vendor/components/chaijs-chai/lib/chai.js
ende-0.1.13 vendor/components/chaijs-chai/lib/chai.js
ende-0.1.13 vendor/assets/components/chaijs-chai/lib/chai.js
ende-0.1.12 vendor/components/chaijs-chai/lib/chai.js
ende-0.1.12 vendor/assets/components/chaijs-chai/lib/chai.js
ende-0.1.11 vendor/components/chaijs-chai/lib/chai.js
ende-0.1.11 vendor/assets/components/chaijs-chai/lib/chai.js
ende-0.1.10 vendor/assets/components/chaijs-chai/lib/chai.js
ende-0.1.10 vendor/components/chaijs-chai/lib/chai.js
ende-0.1.9 vendor/components/chaijs-chai/lib/chai.js
ende-0.1.9 vendor/assets/components/chaijs-chai/lib/chai.js