diff --git a/lib/changelog.js b/lib/changelog.js index ea9f343..922db0e 100644 --- a/lib/changelog.js +++ b/lib/changelog.js @@ -4,13 +4,21 @@ import _shortdate from 'shortdate'; import {readPackageUpSync as _readPackageUpSync} from 'read-package-up'; import buildCommand from './build-command.js'; -const parseOverrides = ({shortdate = _shortdate, execSync = _execSync, readPackageUpSync = _readPackageUpSync}) => ({ - shortdate, - execSync, - readPackageUpSync, -}); +const parseOverrides = (overrides = {}) => { + const { + shortdate = _shortdate, + execSync = _execSync, + readPackageUpSync = _readPackageUpSync, + } = overrides; + + return { + shortdate, + execSync, + readPackageUpSync, + } +}; -export default (versionNew, overrides = {}) => { +export default (versionNew, overrides) => { const { shortdate, execSync,