Allow users to pass property names to createSpyObj

This commit is contained in:
Elliot Nelson
2019-06-20 07:33:10 -04:00
parent 0644731680
commit 45475f6d1e
4 changed files with 83 additions and 20 deletions

View File

@@ -764,8 +764,8 @@ getJasmineRequireObj().Env = function(j$) {
return spyFactory.createSpy(name, originalFn);
};
this.createSpyObj = function(baseName, methodNames) {
return spyFactory.createSpyObj(baseName, methodNames);
this.createSpyObj = function(baseName, methodNames, propertyNames) {
return spyFactory.createSpyObj(baseName, methodNames, propertyNames);
};
var ensureIsFunction = function(fn, caller) {