feat(spy): add option to respy
will not throw error if spyOn called on a spy fixes #931
This commit is contained in:
@@ -270,6 +270,10 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
return runnableResources[currentRunnable().id].spies;
|
||||
}});
|
||||
|
||||
this.allowRespy = function( allow ){
|
||||
spyRegistry.setAllowRespy( allow );
|
||||
};
|
||||
|
||||
this.spyOn = function() {
|
||||
return spyRegistry.spyOn.apply(spyRegistry, arguments);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user