Check for ObjectContaining on either side of equality.
- Also clean up `undefined` check. Fixes #682
This commit is contained in:
@@ -71,6 +71,10 @@ getJasmineRequireObj().matchersUtil = function(j$) {
|
||||
return b.asymmetricMatch(a);
|
||||
}
|
||||
|
||||
if (a instanceof j$.ObjectContaining) {
|
||||
return a.asymmetricMatch(b);
|
||||
}
|
||||
|
||||
if (b instanceof j$.ObjectContaining) {
|
||||
return b.asymmetricMatch(a);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user