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:
Drew Heavner
2020-01-30 11:14:51 -05:00
parent b6496ac4e3
commit bdde081050
2660 changed files with 251487 additions and 213182 deletions

View File

@@ -845,14 +845,20 @@ class ModuleMockerClass {
this._typeOf(original) +
' given instead'
);
} // @ts-ignore overriding original method with a Mock
}
const isMethodOwner = object.hasOwnProperty(methodName); // @ts-ignore overriding original method with a Mock
object[methodName] = this._makeComponent(
{
type: 'function'
},
() => {
object[methodName] = original;
if (isMethodOwner) {
object[methodName] = original;
} else {
delete object[methodName];
}
}
); // @ts-ignore original method is now a Mock
@@ -914,13 +920,14 @@ class ModuleMockerClass {
this._typeOf(original) +
' given instead'
);
}
} // @ts-ignore: mock is assignable
descriptor[accessType] = this._makeComponent(
{
type: 'function'
},
() => {
// @ts-ignore: mock is assignable
descriptor[accessType] = original;
Object.defineProperty(obj, propertyName, descriptor);
}