Fixed #1 - Fixed the whatsnew-** script for loading release notes into builds
Added test to ensure that release notes are parsed properly Updated to latest dependencies to fix security vulnerability Updated GH Actions Workflow to run test before updating tag Updated README.md to reflect proper whatsnew documentation.
This commit is contained in:
13
node_modules/jest-mock/build-es5/index.js
generated
vendored
13
node_modules/jest-mock/build-es5/index.js
generated
vendored
@@ -875,13 +875,18 @@ function () {
|
||||
if (!this.isMockFunction(original)) {
|
||||
if (typeof original !== 'function') {
|
||||
throw new Error('Cannot spy the ' + methodName + ' property because it is not a function; ' + this._typeOf(original) + ' given instead');
|
||||
} // @ts-ignore overriding original method with a Mock
|
||||
}
|
||||
|
||||
var isMethodOwner = object.hasOwnProperty(methodName); // @ts-ignore overriding original method with a Mock
|
||||
|
||||
object[methodName] = this._makeComponent({
|
||||
type: 'function'
|
||||
}, function () {
|
||||
object[methodName] = original;
|
||||
if (isMethodOwner) {
|
||||
object[methodName] = original;
|
||||
} else {
|
||||
delete object[methodName];
|
||||
}
|
||||
}); // @ts-ignore original method is now a Mock
|
||||
|
||||
object[methodName].mockImplementation(function () {
|
||||
@@ -933,11 +938,13 @@ function () {
|
||||
if (!this.isMockFunction(original)) {
|
||||
if (typeof original !== 'function') {
|
||||
throw new Error('Cannot spy the ' + propertyName + ' property because it is not a function; ' + this._typeOf(original) + ' given instead');
|
||||
}
|
||||
} // @ts-ignore: mock is assignable
|
||||
|
||||
|
||||
descriptor[accessType] = this._makeComponent({
|
||||
type: 'function'
|
||||
}, function () {
|
||||
// @ts-ignore: mock is assignable
|
||||
descriptor[accessType] = original;
|
||||
Object.defineProperty(obj, propertyName, descriptor);
|
||||
});
|
||||
|
||||
2
node_modules/jest-mock/build-es5/index.js.map
generated
vendored
2
node_modules/jest-mock/build-es5/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user