mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-22 07:45:09 +00:00
18 lines
415 B
JavaScript
18 lines
415 B
JavaScript
/*!
|
|
* Chai - getActual utility
|
|
* Copyright(c) 2012-2014 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) {
|
|
return args.length > 4 ? args[4] : obj._obj;
|
|
};
|