Add 'nothing' matcher and tests

This commit is contained in:
ksvitkovsky
2017-08-09 15:09:36 +04:00
parent 80dba1138a
commit e7049d3183
3 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
getJasmineRequireObj().nothing = function() {
/**
* {@link expect} nothing explicitly.
* @function
* @name matchers#nothing
* @example
* expect().nothing();
*/
function nothing() {
return {
compare: function() {
return {
pass: true
};
}
};
}
return nothing;
};