mirror of
https://github.com/actions/labeler
synced 2026-05-12 07:41:12 +02:00
build
This commit is contained in:
18
node_modules/jest-jasmine2/build/jasmine/Spec.js
generated
vendored
18
node_modules/jest-jasmine2/build/jasmine/Spec.js
generated
vendored
@@ -214,12 +214,11 @@ class Spec {
|
||||
passed: false,
|
||||
expected: '',
|
||||
actual: '',
|
||||
error:
|
||||
error instanceof _assert.AssertionError
|
||||
? (0, _assertionErrorMessage.default)(error, {
|
||||
expand: this.expand
|
||||
})
|
||||
: error
|
||||
error: this.isAssertionError(error)
|
||||
? (0, _assertionErrorMessage.default)(error, {
|
||||
expand: this.expand
|
||||
})
|
||||
: error
|
||||
},
|
||||
true
|
||||
);
|
||||
@@ -273,6 +272,13 @@ class Spec {
|
||||
getFullName() {
|
||||
return this.getSpecName(this);
|
||||
}
|
||||
|
||||
isAssertionError(error) {
|
||||
return (
|
||||
error instanceof _assert.AssertionError ||
|
||||
(error && error.name === _assert.AssertionError.name)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
exports.default = Spec;
|
||||
|
||||
Reference in New Issue
Block a user