Sha256: 1cf0cb852ffbf8f883da96d45758871512f1fe022d6e532d8dcf7f5a528572eb
Contents?: true
Size: 452 Bytes
Versions: 100
Compression:
Stored size: 452 Bytes
Contents
/*! * Chai - getActual utility * Copyright(c) 2012-2013 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ /** * # getActual(object, [actual]) * * Returns the `actual` value for an Assertion * * @param {Object} object (constructed Assertion) * @param {Arguments} chai.Assertion.prototype.assert arguments */ module.exports = function (obj, args) { var actual = args[4]; return 'undefined' !== typeof actual ? actual : obj._obj; };
Version data entries
100 entries across 68 versions & 1 rubygems