expect(null).toEqual(jasmine.any(Object)) no longer passes
[Finishes #153181443] Fixes #1255.
This commit is contained in:
@@ -24,7 +24,7 @@ getJasmineRequireObj().Any = function(j$) {
|
||||
}
|
||||
|
||||
if (this.expectedObject == Object) {
|
||||
return typeof other == 'object';
|
||||
return other !== null && typeof other == 'object';
|
||||
}
|
||||
|
||||
if (this.expectedObject == Boolean) {
|
||||
|
||||
Reference in New Issue
Block a user