Updating NPM dependencies
This commit is contained in:
19
node_modules/expect/build/extractExpectedAssertionsErrors.js
generated
vendored
19
node_modules/expect/build/extractExpectedAssertionsErrors.js
generated
vendored
@@ -27,14 +27,13 @@ const resetAssertionsLocalState = () => {
|
||||
|
||||
const extractExpectedAssertionsErrors = () => {
|
||||
const result = [];
|
||||
|
||||
const _getState = (0, _jestMatchersObject.getState)(),
|
||||
assertionCalls = _getState.assertionCalls,
|
||||
expectedAssertionsNumber = _getState.expectedAssertionsNumber,
|
||||
expectedAssertionsNumberError = _getState.expectedAssertionsNumberError,
|
||||
isExpectingAssertions = _getState.isExpectingAssertions,
|
||||
isExpectingAssertionsError = _getState.isExpectingAssertionsError;
|
||||
|
||||
const {
|
||||
assertionCalls,
|
||||
expectedAssertionsNumber,
|
||||
expectedAssertionsNumberError,
|
||||
isExpectingAssertions,
|
||||
isExpectingAssertionsError
|
||||
} = (0, _jestMatchersObject.getState)();
|
||||
resetAssertionsLocalState();
|
||||
|
||||
if (
|
||||
@@ -60,9 +59,9 @@ const extractExpectedAssertionsErrors = () => {
|
||||
) +
|
||||
'.';
|
||||
result.push({
|
||||
actual: assertionCalls,
|
||||
actual: assertionCalls.toString(),
|
||||
error: expectedAssertionsNumberError,
|
||||
expected: expectedAssertionsNumber
|
||||
expected: expectedAssertionsNumber.toString()
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user