added unit testing, and started implementing unit tests...phew
This commit is contained in:
16
node_modules/node-environment-flags/shim.js
generated
vendored
Normal file
16
node_modules/node-environment-flags/shim.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const getPolyfill = require('./polyfill');
|
||||
|
||||
module.exports = () => {
|
||||
const polyfill = getPolyfill();
|
||||
if (polyfill !== process.allowedNodeEnvironmentFlags) {
|
||||
Object.defineProperty(process, 'allowedNodeEnvironmentFlags', {
|
||||
writable: true,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
value: polyfill
|
||||
});
|
||||
}
|
||||
return polyfill;
|
||||
};
|
Reference in New Issue
Block a user