Custom matchers fail to behave as expected

If they return false, that should be respected.

Submitted via @tjgrathwell

[Finish #58184156]
close #434
This commit is contained in:
Gregg Van Hove and Tim Jarratt
2013-10-03 15:13:27 -07:00
parent 6354ee17e5
commit 7e071547f5
3 changed files with 20 additions and 8 deletions

View File

@@ -1781,9 +1781,9 @@ getJasmineRequireObj().matchersUtil = function(j$) {
var result = true;
for (var i = 0; i < customTesters.length; i++) {
result = customTesters[i](a, b);
if (result) {
return true;
var customTesterResult = customTesters[i](a, b);
if (!j$.util.isUndefined(customTesterResult)) {
return customTesterResult;
}
}