Matchers & Matchers specs now broken up into individual files. There is now a requireMatchers jasmineRequire function to attach matchers properly.
This commit is contained in:
14
src/core/matchers/toBeUndefined.js
Normal file
14
src/core/matchers/toBeUndefined.js
Normal file
@@ -0,0 +1,14 @@
|
||||
getJasmineRequireObj().toBeUndefined = function() {
|
||||
|
||||
function toBeUndefined() {
|
||||
return {
|
||||
compare: function(actual) {
|
||||
return {
|
||||
pass: void 0 === actual
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return toBeUndefined;
|
||||
};
|
||||
Reference in New Issue
Block a user