Since we want the user to be able to pass a negative comparison function, the extra layer of wrapping is now needed
15 lines
238 B
JavaScript
15 lines
238 B
JavaScript
getJasmineRequireObj().toBeUndefined = function() {
|
|
|
|
function toBeUndefined() {
|
|
return {
|
|
compare: function(actual) {
|
|
return {
|
|
pass: void 0 === actual
|
|
};
|
|
}
|
|
};
|
|
}
|
|
|
|
return toBeUndefined;
|
|
};
|