Updating NPM dependencies
This commit is contained in:
8
node_modules/jest-jasmine2/build/jestExpect.js
generated
vendored
8
node_modules/jest-jasmine2/build/jestExpect.js
generated
vendored
@@ -19,6 +19,8 @@ function _interopRequireDefault(obj) {
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/* eslint-disable local/prefer-spread-eventually */
|
||||
var _default = config => {
|
||||
global.expect = _expect.default;
|
||||
|
||||
@@ -45,18 +47,18 @@ var _default = config => {
|
||||
jasmine.addMatchers = jasmineMatchersObject => {
|
||||
const jestMatchersObject = Object.create(null);
|
||||
Object.keys(jasmineMatchersObject).forEach(name => {
|
||||
jestMatchersObject[name] = function(...args) {
|
||||
jestMatchersObject[name] = function (...args) {
|
||||
// use "expect.extend" if you need to use equality testers (via this.equal)
|
||||
const result = jasmineMatchersObject[name](null, null); // if there is no 'negativeCompare', both should be handled by `compare`
|
||||
|
||||
const negativeCompare = result.negativeCompare || result.compare;
|
||||
return this.isNot
|
||||
? negativeCompare.apply(
|
||||
null, // @ts-ignore
|
||||
null, // @ts-expect-error
|
||||
args
|
||||
)
|
||||
: result.compare.apply(
|
||||
null, // @ts-ignore
|
||||
null, // @ts-expect-error
|
||||
args
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user