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