@@ -12,11 +12,11 @@ getJasmineRequireObj().SpyRegistry = function(j$) {
|
||||
|
||||
this.spyOn = function(obj, methodName) {
|
||||
|
||||
if (j$.util.isUndefined(obj)) {
|
||||
if (j$.util.isUndefined(obj) || obj === null) {
|
||||
throw new Error(getErrorMsg('could not find an object to spy upon for ' + methodName + '()'));
|
||||
}
|
||||
|
||||
if (j$.util.isUndefined(methodName)) {
|
||||
if (j$.util.isUndefined(methodName) || methodName === null) {
|
||||
throw new Error(getErrorMsg('No method name supplied'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user