Revert removal of compare nesting
Since we want the user to be able to pass a negative comparison function, the extra layer of wrapping is now needed
This commit is contained in:
@@ -22,8 +22,7 @@ getJasmineRequireObj().Expectation = function() {
|
||||
|
||||
args.unshift(this.actual);
|
||||
|
||||
var matcherComparator = matcherFactory(this.util, this.customEqualityTesters),
|
||||
result = matcherComparator.apply(null, args);
|
||||
var result = matcherFactory(this.util, this.customEqualityTesters).compare.apply(null, args);
|
||||
|
||||
if (this.isNot) {
|
||||
result.pass = !result.pass;
|
||||
|
||||
Reference in New Issue
Block a user