Add optional param to spyOnAllFunctions to include non-enumerable properties

This commit is contained in:
Darius Keeley
2021-04-22 18:24:20 +01:00
parent 9555cb9842
commit a4ef3687ee
3 changed files with 182 additions and 23 deletions

View File

@@ -285,10 +285,11 @@ getJasmineRequireObj().interface = function(jasmine, env) {
* @function
* @global
* @param {Object} obj - The object upon which to install the {@link Spy}s
* @param {boolean} includeNonEnumerable - Whether or not to add spies to non-enumerable properties
* @returns {Object} the spied object
*/
spyOnAllFunctions: function(obj) {
return env.spyOnAllFunctions(obj);
spyOnAllFunctions: function(obj, includeNonEnumerable) {
return env.spyOnAllFunctions(obj, includeNonEnumerable);
},
jsApiReporter: new jasmine.JsApiReporter({