Merge branch 'riophae-master'

- Merges #1551 from @riophae
This commit is contained in:
Gregg Van Hove
2018-05-02 17:51:34 -07:00
3 changed files with 17 additions and 0 deletions

View File

@@ -1232,6 +1232,11 @@ getJasmineRequireObj().Env = function(j$) {
};
this.createSpy = function(name, originalFn) {
if (arguments.length === 1 && j$.isFunction_(name)) {
originalFn = name;
name = originalFn.name;
}
return spyFactory.createSpy(name, originalFn);
};