git-off

git off handles large files in git repos
git clone https://noulin.net/git/git-off.git
Log | Files | Refs | README

chai.js (1285B)


      1 /*!
      2  * chai
      3  * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
      4  * MIT Licensed
      5  */
      6 
      7 var used = []
      8   , exports = module.exports = {};
      9 
     10 /*!
     11  * Chai version
     12  */
     13 
     14 exports.version = '3.5.0';
     15 
     16 /*!
     17  * Assertion Error
     18  */
     19 
     20 exports.AssertionError = require('assertion-error');
     21 
     22 /*!
     23  * Utils for plugins (not exported)
     24  */
     25 
     26 var util = require('./chai/utils');
     27 
     28 /**
     29  * # .use(function)
     30  *
     31  * Provides a way to extend the internals of Chai
     32  *
     33  * @param {Function}
     34  * @returns {this} for chaining
     35  * @api public
     36  */
     37 
     38 exports.use = function (fn) {
     39   if (!~used.indexOf(fn)) {
     40     fn(this, util);
     41     used.push(fn);
     42   }
     43 
     44   return this;
     45 };
     46 
     47 /*!
     48  * Utility Functions
     49  */
     50 
     51 exports.util = util;
     52 
     53 /*!
     54  * Configuration
     55  */
     56 
     57 var config = require('./chai/config');
     58 exports.config = config;
     59 
     60 /*!
     61  * Primary `Assertion` prototype
     62  */
     63 
     64 var assertion = require('./chai/assertion');
     65 exports.use(assertion);
     66 
     67 /*!
     68  * Core Assertions
     69  */
     70 
     71 var core = require('./chai/core/assertions');
     72 exports.use(core);
     73 
     74 /*!
     75  * Expect interface
     76  */
     77 
     78 var expect = require('./chai/interface/expect');
     79 exports.use(expect);
     80 
     81 /*!
     82  * Should interface
     83  */
     84 
     85 var should = require('./chai/interface/should');
     86 exports.use(should);
     87 
     88 /*!
     89  * Assert interface
     90  */
     91 
     92 var assert = require('./chai/interface/assert');
     93 exports.use(assert);