reset jasmine.js

This commit is contained in:
Matt McCherry
2024-12-02 10:18:24 +00:00
parent 580323c221
commit 27bb6ebac1
-23
View File
@@ -150,7 +150,6 @@ getJasmineRequireObj().requireMatchers = function(jRequire, j$) {
'toBeTrue', 'toBeTrue',
'toBeTruthy', 'toBeTruthy',
'toBeUndefined', 'toBeUndefined',
'toBeNullish',
'toContain', 'toContain',
'toEqual', 'toEqual',
'toHaveSize', 'toHaveSize',
@@ -6011,28 +6010,6 @@ getJasmineRequireObj().toBeNull = function() {
return toBeNull; return toBeNull;
}; };
getJasmineRequireObj().toBeNullish = function() {
/**
* {@link expect} the actual value to be `null` or `undefined`.
* @function
* @name matchers#toBeNullish
* @since 5.6.0
* @example
* expect(result).toBeNullish():
*/
function toBeNullish() {
return {
compare: function(actual) {
return {
pass: null === actual || void 0 === actual
};
}
};
}
return toBeNullish;
};
getJasmineRequireObj().toBePositiveInfinity = function(j$) { getJasmineRequireObj().toBePositiveInfinity = function(j$) {
/** /**
* {@link expect} the actual value to be `Infinity` (infinity). * {@link expect} the actual value to be `Infinity` (infinity).