Correctly expost spyOnAllFunctions

- See #1581
This commit is contained in:
Gregg Van Hove
2018-08-14 17:11:05 -07:00
parent 7205d07c67
commit afa18e554c
3 changed files with 10 additions and 2 deletions

View File

@@ -1308,6 +1308,10 @@ getJasmineRequireObj().Env = function(j$) {
return spyRegistry.spyOnProperty.apply(spyRegistry, arguments);
};
this.spyOnAllFunctions = function() {
return spyRegistry.spyOnAllFunctions.apply(spyRegistry, arguments);
};
this.createSpy = function(name, originalFn) {
if (arguments.length === 1 && j$.isFunction_(name)) {
originalFn = name;
@@ -5482,7 +5486,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
/**
* Installs spies on all writable and configurable properties of an object.
* @name spyOnProperty
* @name spyOnAllFunctions
* @function
* @global
* @param {Object} obj - The object upon which to install the {@link Spy}s

View File

@@ -537,6 +537,10 @@ getJasmineRequireObj().Env = function(j$) {
return spyRegistry.spyOnProperty.apply(spyRegistry, arguments);
};
this.spyOnAllFunctions = function() {
return spyRegistry.spyOnAllFunctions.apply(spyRegistry, arguments);
};
this.createSpy = function(name, originalFn) {
if (arguments.length === 1 && j$.isFunction_(name)) {
originalFn = name;

View File

@@ -237,7 +237,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
/**
* Installs spies on all writable and configurable properties of an object.
* @name spyOnProperty
* @name spyOnAllFunctions
* @function
* @global
* @param {Object} obj - The object upon which to install the {@link Spy}s