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:
8
node_modules/object.getownpropertydescriptors/test/.eslintrc
generated
vendored
8
node_modules/object.getownpropertydescriptors/test/.eslintrc
generated
vendored
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"rules": {
|
||||
"max-nested-callbacks": [2, 3],
|
||||
"max-statements": [2, 15],
|
||||
"max-statements-per-line": [2, { "max": 2 }],
|
||||
"no-invalid-this": [1]
|
||||
}
|
||||
}
|
||||
4
node_modules/object.getownpropertydescriptors/test/index.js
generated
vendored
4
node_modules/object.getownpropertydescriptors/test/index.js
generated
vendored
@@ -6,8 +6,8 @@ var runTests = require('./tests');
|
||||
|
||||
test('as a function', function (t) {
|
||||
t.test('bad object/this value', function (st) {
|
||||
st.throws(function () { return getDescriptors(undefined); }, TypeError, 'undefined is not an object');
|
||||
st.throws(function () { return getDescriptors(null); }, TypeError, 'null is not an object');
|
||||
st['throws'](function () { return getDescriptors(undefined); }, TypeError, 'undefined is not an object');
|
||||
st['throws'](function () { return getDescriptors(null); }, TypeError, 'null is not an object');
|
||||
st.end();
|
||||
});
|
||||
|
||||
|
||||
6
node_modules/object.getownpropertydescriptors/test/shimmed.js
generated
vendored
6
node_modules/object.getownpropertydescriptors/test/shimmed.js
generated
vendored
@@ -7,7 +7,7 @@ var test = require('tape');
|
||||
var defineProperties = require('define-properties');
|
||||
var runTests = require('./tests');
|
||||
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
||||
var functionsHaveNames = function f() {}.name === 'f';
|
||||
var functionsHaveNames = require('functions-have-names')();
|
||||
|
||||
test('shimmed', function (t) {
|
||||
t.equal(Object.getOwnPropertyDescriptors.length, 1, 'Object.getOwnPropertyDescriptors has a length of 1');
|
||||
@@ -24,8 +24,8 @@ test('shimmed', function (t) {
|
||||
var supportsStrictMode = (function () { return typeof this === 'undefined'; }());
|
||||
|
||||
t.test('bad object/this value', { skip: !supportsStrictMode }, function (st) {
|
||||
st.throws(function () { return getDescriptors(undefined, 'a'); }, TypeError, 'undefined is not an object');
|
||||
st.throws(function () { return getDescriptors(null, 'a'); }, TypeError, 'null is not an object');
|
||||
st['throws'](function () { return getDescriptors(undefined, 'a'); }, TypeError, 'undefined is not an object');
|
||||
st['throws'](function () { return getDescriptors(null, 'a'); }, TypeError, 'null is not an object');
|
||||
st.end();
|
||||
});
|
||||
|
||||
|
||||
11
node_modules/object.getownpropertydescriptors/test/tests.js
generated
vendored
11
node_modules/object.getownpropertydescriptors/test/tests.js
generated
vendored
@@ -48,9 +48,7 @@ module.exports = function (getDescriptors, t) {
|
||||
});
|
||||
}
|
||||
|
||||
/* eslint-disable no-extend-native */
|
||||
delete Object.prototype[key];
|
||||
/* eslint-enable no-extend-native */
|
||||
st.end();
|
||||
});
|
||||
|
||||
@@ -74,9 +72,9 @@ module.exports = function (getDescriptors, t) {
|
||||
st.end();
|
||||
});
|
||||
|
||||
var supportsSymbols = typeof Symbol === 'function' && typeof Symbol() === 'symbol';
|
||||
var supportsSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
||||
t.test('gets Symbol descriptors too', { skip: !supportsSymbols }, function (st) {
|
||||
var symbol = Symbol();
|
||||
var symbol = Symbol('sym');
|
||||
var symDescriptor = {
|
||||
configurable: false,
|
||||
enumerable: true,
|
||||
@@ -115,10 +113,7 @@ module.exports = function (getDescriptors, t) {
|
||||
return Object.getOwnPropertyDescriptor(target, key);
|
||||
},
|
||||
ownKeys: function () {
|
||||
return [
|
||||
'foo',
|
||||
'bar'
|
||||
];
|
||||
return ['foo', 'bar'];
|
||||
}
|
||||
});
|
||||
st.deepEqual(getDescriptors(proxy), { foo: fooDescriptor }, 'object has no descriptors');
|
||||
|
||||
Reference in New Issue
Block a user