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:
@@ -1,12 +1,10 @@
|
||||
getJasmineRequireObj().toBeTruthy = function() {
|
||||
|
||||
function toBeTruthy() {
|
||||
return {
|
||||
compare: function(actual) {
|
||||
return {
|
||||
pass: !!actual
|
||||
};
|
||||
}
|
||||
return function(actual) {
|
||||
return {
|
||||
pass: !!actual
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user