Sha256: 8406b2d79dc95d58767046255829986c6af2b056ce452259166ba78862243732

Contents?: true

Size: 1.09 KB

Versions: 15

Compression:

Stored size: 1.09 KB

Contents

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

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

/*!
 * Chai version
 */

exports.version = '1.6.0';

/*!
 * Primary `Assertion` prototype
 */

exports.Assertion = require('./chai/assertion');

/*!
 * Assertion Error
 */

exports.AssertionError = require('./chai/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;
};

/*!
 * 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

15 entries across 15 versions & 1 rubygems

Version Path
ende-0.4.25 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.24 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.23 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.22 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.21 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.15 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.14 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.13 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.12 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.11 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.10 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.9 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.8 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.7 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
ende-0.4.6 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js