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

@@ -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;