Files
jasmine/src/core/matchers/toBeUndefined.js
2019-06-12 16:23:12 -07:00

22 lines
423 B
JavaScript

getJasmineRequireObj().toBeUndefined = function() {
/**
* {@link expect} the actual value to be `undefined`.
* @function
* @name matchers#toBeUndefined
* @since 1.3.0
* @example
* expect(result).toBeUndefined():
*/
function toBeUndefined() {
return {
compare: function(actual) {
return {
pass: void 0 === actual
};
}
};
}
return toBeUndefined;
};