Remove an extra layer of wrapping for matchers/custom matchers
Helps reduce how nested custom matchers have to be for users as well as Jasmine internal matchers [#59161378]
This commit is contained in:
@@ -22,7 +22,8 @@ getJasmineRequireObj().Expectation = function() {
|
||||
|
||||
args.unshift(this.actual);
|
||||
|
||||
var result = matcherFactory(this.util, this.customEqualityTesters).compare.apply(null, args);
|
||||
var matcherComparator = matcherFactory(this.util, this.customEqualityTesters),
|
||||
result = matcherComparator.apply(null, args);
|
||||
|
||||
if (this.isNot) {
|
||||
result.pass = !result.pass;
|
||||
|
||||
Reference in New Issue
Block a user