Just return the result directly from any and objectContaining

- They return false when they fail which means not equal.
This commit is contained in:
slackersoft
2014-12-02 07:56:40 -08:00
parent dc7be9c55e
commit b68ba90ad7
2 changed files with 6 additions and 24 deletions

View File

@@ -2241,24 +2241,15 @@ getJasmineRequireObj().matchersUtil = function(j$) {
}
if (a instanceof j$.Any) {
result = a.jasmineMatches(b);
if (result) {
return true;
}
return a.jasmineMatches(b);
}
if (b instanceof j$.Any) {
result = b.jasmineMatches(a);
if (result) {
return true;
}
return b.jasmineMatches(a);
}
if (b instanceof j$.ObjectContaining) {
result = b.jasmineMatches(a);
if (result) {
return true;
}
return b.jasmineMatches(a);
}
if (a instanceof Error && b instanceof Error) {

View File

@@ -64,24 +64,15 @@ getJasmineRequireObj().matchersUtil = function(j$) {
}
if (a instanceof j$.Any) {
result = a.jasmineMatches(b);
if (result) {
return true;
}
return a.jasmineMatches(b);
}
if (b instanceof j$.Any) {
result = b.jasmineMatches(a);
if (result) {
return true;
}
return b.jasmineMatches(a);
}
if (b instanceof j$.ObjectContaining) {
result = b.jasmineMatches(a);
if (result) {
return true;
}
return b.jasmineMatches(a);
}
if (a instanceof Error && b instanceof Error) {