Updating NPM dependencies
This commit is contained in:
6
node_modules/jest-jasmine2/build/expectationResultFactory.js
generated
vendored
6
node_modules/jest-jasmine2/build/expectationResultFactory.js
generated
vendored
@@ -37,6 +37,10 @@ function messageFormatter({error, message, passed}) {
|
||||
typeof error.message === 'string' &&
|
||||
typeof error.name === 'string'
|
||||
) {
|
||||
if (error.message === '') {
|
||||
return error.name;
|
||||
}
|
||||
|
||||
return `${error.name}: ${error.message}`;
|
||||
}
|
||||
|
||||
@@ -51,7 +55,7 @@ function stackFormatter(options, initError, errorMessage) {
|
||||
}
|
||||
|
||||
if (options.error) {
|
||||
if (options.error.stack) {
|
||||
if (typeof options.error.stack === 'string') {
|
||||
return options.error.stack;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user