run prettier and fix tests
This commit is contained in:
@@ -6011,6 +6011,28 @@ 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).
|
||||||
|
|||||||
@@ -481,7 +481,6 @@ describe('Matchers (Integration)', function() {
|
|||||||
verifyFails(function(env) {
|
verifyFails(function(env) {
|
||||||
env.expect(1).toBeNullish();
|
env.expect(1).toBeNullish();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('toContain', function() {
|
describe('toContain', function() {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ getJasmineRequireObj().requireMatchers = function(jRequire, j$) {
|
|||||||
'toBeTrue',
|
'toBeTrue',
|
||||||
'toBeTruthy',
|
'toBeTruthy',
|
||||||
'toBeUndefined',
|
'toBeUndefined',
|
||||||
|
'toBeNullish',
|
||||||
'toContain',
|
'toContain',
|
||||||
'toEqual',
|
'toEqual',
|
||||||
'toHaveSize',
|
'toHaveSize',
|
||||||
|
|||||||
Reference in New Issue
Block a user