Updating NPM dependencies
This commit is contained in:
19
node_modules/expect/build/jestMatchersObject.js
generated
vendored
19
node_modules/expect/build/jestMatchersObject.js
generated
vendored
@@ -17,15 +17,16 @@ const INTERNAL_MATCHER_FLAG = Symbol.for('$$jest-internal-matcher');
|
||||
exports.INTERNAL_MATCHER_FLAG = INTERNAL_MATCHER_FLAG;
|
||||
|
||||
if (!global.hasOwnProperty(JEST_MATCHERS_OBJECT)) {
|
||||
const defaultState = {
|
||||
assertionCalls: 0,
|
||||
expectedAssertionsNumber: null,
|
||||
isExpectingAssertions: false,
|
||||
suppressedErrors: [] // errors that are not thrown immediately.
|
||||
};
|
||||
Object.defineProperty(global, JEST_MATCHERS_OBJECT, {
|
||||
value: {
|
||||
matchers: Object.create(null),
|
||||
state: {
|
||||
assertionCalls: 0,
|
||||
expectedAssertionsNumber: null,
|
||||
isExpectingAssertions: false,
|
||||
suppressedErrors: [] // errors that are not thrown immediately.
|
||||
}
|
||||
state: defaultState
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -60,9 +61,7 @@ const setMatchers = (matchers, isInternal, expect) => {
|
||||
}
|
||||
|
||||
asymmetricMatch(other) {
|
||||
const _ref = matcher(other, ...this.sample),
|
||||
pass = _ref.pass;
|
||||
|
||||
const {pass} = matcher(other, ...this.sample);
|
||||
return this.inverse ? !pass : pass;
|
||||
}
|
||||
|
||||
@@ -75,7 +74,7 @@ const setMatchers = (matchers, isInternal, expect) => {
|
||||
}
|
||||
|
||||
toAsymmetricMatcher() {
|
||||
return `${this.toString()}<${this.sample.join(', ')}>`;
|
||||
return `${this.toString()}<${this.sample.map(String).join(', ')}>`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user