* Merges #1716 from @elliot-nelson
This commit is contained in:
Pivotal
2019-08-29 13:48:58 -07:00
committed by Steve Gravrock
6 changed files with 186 additions and 8 deletions

View File

@@ -1,9 +1,15 @@
getJasmineRequireObj().SpyFactory = function(j$) {
function SpyFactory(getCustomStrategies, getPromise) {
function SpyFactory(getCustomStrategies, getDefaultStrategyFn, getPromise) {
var self = this;
this.createSpy = function(name, originalFn) {
return j$.Spy(name, originalFn, getCustomStrategies(), getPromise);
return j$.Spy(
name,
originalFn,
getCustomStrategies(),
getDefaultStrategyFn(),
getPromise
);
};
this.createSpyObj = function(baseName, methodNames, propertyNames) {