diff --git a/chai.js b/chai.js index 431fea3f8..c46707390 100644 --- a/chai.js +++ b/chai.js @@ -15,7 +15,7 @@ var used = [] * Chai version */ -exports.version = '3.4.1'; +exports.version = '3.4.2'; /*! * Assertion Error @@ -324,6 +324,7 @@ module.exports = function (chai, _) { * - same * * @name language chains + * @namespace BDD * @api public */ @@ -347,6 +348,7 @@ module.exports = function (chai, _) { * .and.not.equal('bar'); * * @name not + * @namespace BDD * @api public */ @@ -371,6 +373,7 @@ module.exports = function (chai, _) { * expect(deepCss).to.have.deep.property('\\.link.\\[target\\]', 42); * * @name deep + * @namespace BDD * @api public */ @@ -387,6 +390,7 @@ module.exports = function (chai, _) { * expect(foo).to.have.any.keys('bar', 'baz'); * * @name any + * @namespace BDD * @api public */ @@ -405,6 +409,7 @@ module.exports = function (chai, _) { * expect(foo).to.have.all.keys('bar', 'baz'); * * @name all + * @namespace BDD * @api public */ @@ -440,6 +445,7 @@ module.exports = function (chai, _) { * @alias an * @param {String} type * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -477,6 +483,7 @@ module.exports = function (chai, _) { * @alias contains * @param {Object|String|Number} obj * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -532,6 +539,7 @@ module.exports = function (chai, _) { * expect(null).to.not.be.ok; * * @name ok + * @namespace BDD * @api public */ @@ -551,6 +559,7 @@ module.exports = function (chai, _) { * expect(1).to.not.be.true; * * @name true + * @namespace BDD * @api public */ @@ -572,6 +581,7 @@ module.exports = function (chai, _) { * expect(0).to.not.be.false; * * @name false + * @namespace BDD * @api public */ @@ -593,6 +603,7 @@ module.exports = function (chai, _) { * expect(undefined).to.not.be.null; * * @name null + * @namespace BDD * @api public */ @@ -613,6 +624,7 @@ module.exports = function (chai, _) { * expect(null).to.not.be.undefined; * * @name undefined + * @namespace BDD * @api public */ @@ -632,6 +644,7 @@ module.exports = function (chai, _) { * expect(4).not.to.be.NaN; * * @name NaN + * @namespace BDD * @api public */ @@ -657,6 +670,7 @@ module.exports = function (chai, _) { * expect(baz).to.not.exist; * * @name exist + * @namespace BDD * @api public */ @@ -681,6 +695,7 @@ module.exports = function (chai, _) { * expect({}).to.be.empty; * * @name empty + * @namespace BDD * @api public */ @@ -712,6 +727,7 @@ module.exports = function (chai, _) { * * @name arguments * @alias Arguments + * @namespace BDD * @api public */ @@ -747,6 +763,7 @@ module.exports = function (chai, _) { * @alias deep.equal * @param {Mixed} value * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -783,6 +800,7 @@ module.exports = function (chai, _) { * @alias eqls * @param {Mixed} value * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -821,6 +839,7 @@ module.exports = function (chai, _) { * @alias greaterThan * @param {Number} value * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -869,6 +888,7 @@ module.exports = function (chai, _) { * @alias gte * @param {Number} value * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -917,6 +937,7 @@ module.exports = function (chai, _) { * @alias lessThan * @param {Number} value * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -965,6 +986,7 @@ module.exports = function (chai, _) { * @alias lte * @param {Number} value * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1012,6 +1034,7 @@ module.exports = function (chai, _) { * @param {Number} start lowerbound inclusive * @param {Number} finish upperbound inclusive * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1051,6 +1074,7 @@ module.exports = function (chai, _) { * @param {Constructor} constructor * @param {String} message _optional_ * @alias instanceOf + * @namespace BDD * @api public */ @@ -1135,6 +1159,7 @@ module.exports = function (chai, _) { * @param {Mixed} value (optional) * @param {String} message _optional_ * @returns value of property for chaining + * @namespace BDD * @api public */ @@ -1190,6 +1215,7 @@ module.exports = function (chai, _) { * @alias haveOwnProperty * @param {String} name * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1222,6 +1248,7 @@ module.exports = function (chai, _) { * @param {String} name * @param {Object} descriptor _optional_ * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1274,6 +1301,7 @@ module.exports = function (chai, _) { * switched to use `lengthOf(value)` instead. * * @name length + * @namespace BDD * @api public */ @@ -1289,6 +1317,7 @@ module.exports = function (chai, _) { * @name lengthOf * @param {Number} length * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1325,6 +1354,7 @@ module.exports = function (chai, _) { * @alias matches * @param {RegExp} RegularExpression * @param {String} message _optional_ + * @namespace BDD * @api public */ function assertMatch(re, msg) { @@ -1350,6 +1380,7 @@ module.exports = function (chai, _) { * @name string * @param {String} string * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1401,6 +1432,7 @@ module.exports = function (chai, _) { * @name keys * @alias key * @param {...String|Array|Object} keys + * @namespace BDD * @api public */ @@ -1520,6 +1552,7 @@ module.exports = function (chai, _) { * @param {String} message _optional_ * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types * @returns error for chaining (null if no error) + * @namespace BDD * @api public */ @@ -1663,6 +1696,7 @@ module.exports = function (chai, _) { * @alias respondsTo * @param {String} method * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1697,6 +1731,7 @@ module.exports = function (chai, _) { * expect(Foo).itself.not.to.respondTo('baz'); * * @name itself + * @namespace BDD * @api public */ @@ -1715,6 +1750,7 @@ module.exports = function (chai, _) { * @alias satisfies * @param {Function} matcher * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1746,6 +1782,7 @@ module.exports = function (chai, _) { * @param {Number} expected * @param {Number} delta * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1797,6 +1834,7 @@ module.exports = function (chai, _) { * @name members * @param {Array} set * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1846,6 +1884,7 @@ module.exports = function (chai, _) { * @name oneOf * @param {Array<*>} list * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1883,6 +1922,7 @@ module.exports = function (chai, _) { * @param {String} object * @param {String} property name * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1920,6 +1960,7 @@ module.exports = function (chai, _) { * @param {String} object * @param {String} property name * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1957,6 +1998,7 @@ module.exports = function (chai, _) { * @param {String} object * @param {String} property name * @param {String} message _optional_ + * @namespace BDD * @api public */ @@ -1995,6 +2037,7 @@ module.exports = function (chai, _) { * expect(frozenObject).to.not.be.extensible; * * @name extensible + * @namespace BDD * @api public */ @@ -2036,6 +2079,7 @@ module.exports = function (chai, _) { * expect({}).to.not.be.sealed; * * @name sealed + * @namespace BDD * @api public */ @@ -2075,6 +2119,7 @@ module.exports = function (chai, _) { * expect({}).to.not.be.frozen; * * @name frozen + * @namespace BDD * @api public */ @@ -2135,6 +2180,7 @@ module.exports = function (chai, util) { * @param {Mixed} expression to test for truthiness * @param {String} message to display on error * @name assert + * @namespace Assert * @api public */ @@ -2157,6 +2203,7 @@ module.exports = function (chai, util) { * @param {Mixed} expected * @param {String} message * @param {String} operator + * @namespace Assert * @api public */ @@ -2181,6 +2228,7 @@ module.exports = function (chai, util) { * @alias ok * @param {Mixed} object to test * @param {String} message + * @namespace Assert * @api public */ @@ -2200,6 +2248,7 @@ module.exports = function (chai, util) { * @alias notOk * @param {Mixed} object to test * @param {String} message + * @namespace Assert * @api public */ @@ -2218,6 +2267,7 @@ module.exports = function (chai, util) { * @param {Mixed} actual * @param {Mixed} expected * @param {String} message + * @namespace Assert * @api public */ @@ -2244,6 +2294,7 @@ module.exports = function (chai, util) { * @param {Mixed} actual * @param {Mixed} expected * @param {String} message + * @namespace Assert * @api public */ @@ -2270,6 +2321,7 @@ module.exports = function (chai, util) { * @param {Mixed} actual * @param {Mixed} expected * @param {String} message + * @namespace Assert * @api public */ @@ -2288,6 +2340,7 @@ module.exports = function (chai, util) { * @param {Mixed} actual * @param {Mixed} expected * @param {String} message + * @namespace Assert * @api public */ @@ -2306,6 +2359,7 @@ module.exports = function (chai, util) { * @param {Mixed} actual * @param {Mixed} expected * @param {String} message + * @namespace Assert * @api public */ @@ -2324,6 +2378,7 @@ module.exports = function (chai, util) { * @param {Mixed} actual * @param {Mixed} expected * @param {String} message + * @namespace Assert * @api public */ @@ -2342,6 +2397,7 @@ module.exports = function (chai, util) { * @param {Mixed} valueToCheck * @param {Mixed} valueToBeAbove * @param {String} message + * @namespace Assert * @api public */ @@ -2361,6 +2417,7 @@ module.exports = function (chai, util) { * @param {Mixed} valueToCheck * @param {Mixed} valueToBeAtLeast * @param {String} message + * @namespace Assert * @api public */ @@ -2379,6 +2436,7 @@ module.exports = function (chai, util) { * @param {Mixed} valueToCheck * @param {Mixed} valueToBeBelow * @param {String} message + * @namespace Assert * @api public */ @@ -2398,6 +2456,7 @@ module.exports = function (chai, util) { * @param {Mixed} valueToCheck * @param {Mixed} valueToBeAtMost * @param {String} message + * @namespace Assert * @api public */ @@ -2416,6 +2475,7 @@ module.exports = function (chai, util) { * @name isTrue * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2434,6 +2494,7 @@ module.exports = function (chai, util) { * @name isNotTrue * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2452,6 +2513,7 @@ module.exports = function (chai, util) { * @name isFalse * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2470,6 +2532,7 @@ module.exports = function (chai, util) { * @name isNotFalse * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2487,6 +2550,7 @@ module.exports = function (chai, util) { * @name isNull * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2505,6 +2569,7 @@ module.exports = function (chai, util) { * @name isNotNull * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2521,6 +2586,7 @@ module.exports = function (chai, util) { * @name isNaN * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2537,6 +2603,7 @@ module.exports = function (chai, util) { * @name isNotNaN * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ assert.isNotNaN = function (val, msg) { @@ -2554,6 +2621,7 @@ module.exports = function (chai, util) { * @name isUndefined * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2572,6 +2640,7 @@ module.exports = function (chai, util) { * @name isDefined * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2590,6 +2659,7 @@ module.exports = function (chai, util) { * @name isFunction * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2608,6 +2678,7 @@ module.exports = function (chai, util) { * @name isNotFunction * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2627,6 +2698,7 @@ module.exports = function (chai, util) { * @name isObject * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2646,6 +2718,7 @@ module.exports = function (chai, util) { * @name isNotObject * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2664,6 +2737,7 @@ module.exports = function (chai, util) { * @name isArray * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2682,6 +2756,7 @@ module.exports = function (chai, util) { * @name isNotArray * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2700,6 +2775,7 @@ module.exports = function (chai, util) { * @name isString * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2718,6 +2794,7 @@ module.exports = function (chai, util) { * @name isNotString * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2736,6 +2813,7 @@ module.exports = function (chai, util) { * @name isNumber * @param {Number} value * @param {String} message + * @namespace Assert * @api public */ @@ -2754,6 +2832,7 @@ module.exports = function (chai, util) { * @name isNotNumber * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2775,6 +2854,7 @@ module.exports = function (chai, util) { * @name isBoolean * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2796,6 +2876,7 @@ module.exports = function (chai, util) { * @name isNotBoolean * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -2820,6 +2901,7 @@ module.exports = function (chai, util) { * @param {Mixed} value * @param {String} name * @param {String} message + * @namespace Assert * @api public */ @@ -2839,6 +2921,7 @@ module.exports = function (chai, util) { * @param {Mixed} value * @param {String} typeof name * @param {String} message + * @namespace Assert * @api public */ @@ -2860,6 +2943,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {Constructor} constructor * @param {String} message + * @namespace Assert * @api public */ @@ -2881,6 +2965,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {Constructor} constructor * @param {String} message + * @namespace Assert * @api public */ @@ -2901,6 +2986,7 @@ module.exports = function (chai, util) { * @param {Array|String} haystack * @param {Mixed} needle * @param {String} message + * @namespace Assert * @api public */ @@ -2921,6 +3007,7 @@ module.exports = function (chai, util) { * @param {Array|String} haystack * @param {Mixed} needle * @param {String} message + * @namespace Assert * @api public */ @@ -2939,6 +3026,7 @@ module.exports = function (chai, util) { * @param {Mixed} value * @param {RegExp} regexp * @param {String} message + * @namespace Assert * @api public */ @@ -2957,6 +3045,7 @@ module.exports = function (chai, util) { * @param {Mixed} value * @param {RegExp} regexp * @param {String} message + * @namespace Assert * @api public */ @@ -2975,6 +3064,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {String} property * @param {String} message + * @namespace Assert * @api public */ @@ -2993,6 +3083,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {String} property * @param {String} message + * @namespace Assert * @api public */ @@ -3012,6 +3103,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {String} property * @param {String} message + * @namespace Assert * @api public */ @@ -3031,6 +3123,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {String} property * @param {String} message + * @namespace Assert * @api public */ @@ -3051,6 +3144,7 @@ module.exports = function (chai, util) { * @param {String} property * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -3071,6 +3165,7 @@ module.exports = function (chai, util) { * @param {String} property * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -3092,6 +3187,7 @@ module.exports = function (chai, util) { * @param {String} property * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -3113,6 +3209,7 @@ module.exports = function (chai, util) { * @param {String} property * @param {Mixed} value * @param {String} message + * @namespace Assert * @api public */ @@ -3132,6 +3229,7 @@ module.exports = function (chai, util) { * @param {Mixed} object * @param {Number} length * @param {String} message + * @namespace Assert * @api public */ @@ -3160,6 +3258,7 @@ module.exports = function (chai, util) { * @param {RegExp} regexp * @param {String} message * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types + * @namespace Assert * @api public */ @@ -3188,6 +3287,7 @@ module.exports = function (chai, util) { * @param {RegExp} regexp * @param {String} message * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types + * @namespace Assert * @api public */ @@ -3213,6 +3313,7 @@ module.exports = function (chai, util) { * @param {String} operator * @param {Mixed} val2 * @param {String} message + * @namespace Assert * @api public */ @@ -3265,6 +3366,7 @@ module.exports = function (chai, util) { * @param {Number} expected * @param {Number} delta * @param {String} message + * @namespace Assert * @api public */ @@ -3284,6 +3386,7 @@ module.exports = function (chai, util) { * @param {Number} expected * @param {Number} delta * @param {String} message + * @namespace Assert * @api public */ @@ -3303,6 +3406,7 @@ module.exports = function (chai, util) { * @param {Array} set1 * @param {Array} set2 * @param {String} message + * @namespace Assert * @api public */ @@ -3322,6 +3426,7 @@ module.exports = function (chai, util) { * @param {Array} set1 * @param {Array} set2 * @param {String} message + * @namespace Assert * @api public */ @@ -3341,6 +3446,7 @@ module.exports = function (chai, util) { * @param {Array} superset * @param {Array} subset * @param {String} message + * @namespace Assert * @api public */ @@ -3359,6 +3465,7 @@ module.exports = function (chai, util) { * @param {*} inList * @param {Array<*>} list * @param {String} message + * @namespace Assert * @api public */ @@ -3380,6 +3487,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {String} property name * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3401,6 +3509,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {String} property name * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3422,6 +3531,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {String} property name * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3443,6 +3553,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {String} property name * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3464,6 +3575,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {String} property name * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3485,6 +3597,7 @@ module.exports = function (chai, util) { * @param {Object} object * @param {String} property name * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3504,6 +3617,7 @@ module.exports = function (chai, util) { * * @name ifError * @param {Object} object + * @namespace Assert * @api public */ @@ -3524,6 +3638,7 @@ module.exports = function (chai, util) { * @alias extensible * @param {Object} object * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3548,6 +3663,7 @@ module.exports = function (chai, util) { * @alias notExtensible * @param {Object} object * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3571,6 +3687,7 @@ module.exports = function (chai, util) { * @alias sealed * @param {Object} object * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3589,6 +3706,7 @@ module.exports = function (chai, util) { * @alias notSealed * @param {Object} object * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3609,6 +3727,7 @@ module.exports = function (chai, util) { * @alias frozen * @param {Object} object * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3627,6 +3746,7 @@ module.exports = function (chai, util) { * @alias notFrozen * @param {Object} object * @param {String} message _optional_ + * @namespace Assert * @api public */ @@ -3676,6 +3796,7 @@ module.exports = function (chai, util) { * @param {Mixed} expected * @param {String} message * @param {String} operator + * @namespace Expect * @api public */ @@ -3740,6 +3861,7 @@ module.exports = function (chai, util) { * @param {Mixed} expected * @param {String} message * @param {String} operator + * @namespace Should * @api public */ @@ -3844,6 +3966,7 @@ var call = Function.prototype.call, * @param {String} name of method to add * @param {Function} method function to be used for `name`, when called * @param {Function} chainingBehavior function to be called every time the property is accessed + * @namespace Utils * @name addChainableMethod * @api public */ @@ -3932,6 +4055,7 @@ var config = require('../config'); * @param {Object} ctx object to which the method is added * @param {String} name of method to add * @param {Function} method function to be used for name + * @namespace Utils * @name addMethod * @api public */ @@ -3978,6 +4102,7 @@ var flag = require('./flag'); * @param {Object} ctx object to which the property is added * @param {String} name of property to add * @param {Function} getter function to be used for name + * @namespace Utils * @name addProperty * @api public */ @@ -4012,6 +4137,7 @@ module.exports = function (ctx, name, getter) { * * @param {Mixed} obj constructed Assertion * @param {Array} type A list of allowed types for this assertion + * @namespace Utils * @name expectTypes * @api public */ @@ -4060,6 +4186,7 @@ module.exports = function (obj, types) { * @param {Object} object constructed Assertion * @param {String} key * @param {Mixed} value (optional) + * @namespace Utils * @name flag * @api private */ @@ -4087,6 +4214,8 @@ module.exports = function (obj, key, value) { * * @param {Object} object (constructed Assertion) * @param {Arguments} chai.Assertion.prototype.assert arguments + * @namespace Utils + * @name getActual */ module.exports = function (obj, args) { @@ -4108,6 +4237,7 @@ module.exports = function (obj, args) { * * @param {Object} object * @returns {Array} + * @namespace Utils * @name getEnumerableProperties * @api public */ @@ -4150,6 +4280,7 @@ var flag = require('./flag') * * @param {Object} object (constructed Assertion) * @param {Arguments} chai.Assertion.prototype.assert arguments + * @namespace Utils * @name getMessage * @api public */ @@ -4185,6 +4316,8 @@ module.exports = function (obj, args) { * Gets the name of a function, in a cross-browser way. * * @param {Function} a function (usually a constructor) + * @namespace Utils + * @name getName */ module.exports = function (func) { @@ -4220,6 +4353,7 @@ var hasProperty = require('./hasProperty'); * @param {String} path * @param {Object} object * @returns {Object} info + * @namespace Utils * @name getPathInfo * @api public */ @@ -4342,13 +4476,14 @@ var getPathInfo = require('./getPathInfo'); * @param {String} path * @param {Object} object * @returns {Object} value or `undefined` + * @namespace Utils * @name getPathValue * @api public */ module.exports = function(path, obj) { var info = getPathInfo(path, obj); return info.value; -}; +}; },{"./getPathInfo":18}],20:[function(require,module,exports){ /*! @@ -4365,6 +4500,7 @@ module.exports = function(path, obj) { * * @param {Object} object * @returns {Array} + * @namespace Utils * @name getProperties * @api public */ @@ -4416,7 +4552,7 @@ var type = require('type-detect'); * hasProperty('str', obj); // true * hasProperty('constructor', obj); // true * hasProperty('bar', obj); // false - * + * * hasProperty('length', obj.str); // true * hasProperty(1, obj.str); // true * hasProperty(5, obj.str); // false @@ -4428,6 +4564,7 @@ var type = require('type-detect'); * @param {Objuect} object * @param {String|Number} name * @returns {Boolean} whether it exists + * @namespace Utils * @name getPathInfo * @api public */ @@ -4604,6 +4741,8 @@ module.exports = inspect; * @param {Number} depth Depth in which to descend in object. Default is 2. * @param {Boolean} colors Flag to turn on ANSI escape codes to color the * output. Default is false (no coloring). + * @namespace Utils + * @name inspect */ function inspect(obj, showHidden, depth, colors) { var ctx = { @@ -4942,6 +5081,7 @@ var config = require('../config'); * * @param {Mixed} javascript object to inspect * @name objDisplay + * @namespace Utils * @api public */ @@ -5005,6 +5145,7 @@ module.exports = function (obj) { * @param {String} name of method / property to overwrite * @param {Function} method function that returns a function to be used for name * @param {Function} chainingBehavior function that returns a function to be used for property + * @namespace Utils * @name overwriteChainableMethod * @api public */ @@ -5061,6 +5202,7 @@ module.exports = function (ctx, name, method, chainingBehavior) { * @param {Object} ctx object whose method is to be overwritten * @param {String} name of method to overwrite * @param {Function} method function that returns a function to be used for name + * @namespace Utils * @name overwriteMethod * @api public */ @@ -5114,6 +5256,7 @@ module.exports = function (ctx, name, method) { * @param {Object} ctx object whose property is to be overwritten * @param {String} name of property to overwrite * @param {Function} getter function that returns a getter function to be used for name + * @namespace Utils * @name overwriteProperty * @api public */ @@ -5154,6 +5297,8 @@ var flag = require('./flag'); * * @param {Object} object (constructed Assertion) * @param {Arguments} chai.Assertion.prototype.assert arguments + * @namespace Utils + * @name test */ module.exports = function (obj, args) { @@ -5187,6 +5332,7 @@ module.exports = function (obj, args) { * @param {Assertion} assertion the assertion to transfer the flags from * @param {Object} object the object to transfer the flags to; usually a new assertion * @param {Boolean} includeAll + * @namespace Utils * @name transferFlags * @api private */ diff --git a/lib/chai.js b/lib/chai.js index 2ba493c87..9103efe8e 100644 --- a/lib/chai.js +++ b/lib/chai.js @@ -11,7 +11,7 @@ var used = [] * Chai version */ -exports.version = '3.4.1'; +exports.version = '3.4.2'; /*! * Assertion Error diff --git a/package.json b/package.json index da9c09da5..2cb47777c 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "Veselin Todorov ", "John Firebaugh " ], - "version": "3.4.1", + "version": "3.4.2", "repository": { "type": "git", "url": "https://github.com/chaijs/chai"