Skip to content

Commit

Permalink
Auto-format
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jan 9, 2022
1 parent 1b1c83d commit ec42877
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ConventionalChangelog extends Plugin {
const context = Object.assign({ version, previousTag, currentTag }, this.options.context);
const debug = this.config.isDebug ? this.debug : null;
const gitRawCommitsOpts = Object.assign({ debug }, this.options.gitRawCommitsOpts);
const { parserOpts, writerOpts } = options
const { parserOpts, writerOpts } = options;
delete options.context;
delete options.gitRawCommitsOpts;
delete options.parserOpts;
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ test('should pass only parserOpts', async t => {
mergePattern: /^Merge pull request #(\d+) from (.*)$/,
mergeCorrespondence: ['id', 'source']
});
assert.deepStrictEqual(args[4], undefined)
assert.deepStrictEqual(args[4], undefined);
});

test('should pass only writerOpts', async t => {
Expand All @@ -200,7 +200,7 @@ test('should pass only writerOpts', async t => {
assert.deepStrictEqual(args[0], { releaseCount: 1, preset: 'angular', tagPrefix: '' });
assert.deepStrictEqual(args[1], { version: '1.1.0', currentTag: null, previousTag: undefined });
assert.deepStrictEqual(args[2], { debug: null });
assert.deepStrictEqual(args[3], undefined)
assert.deepStrictEqual(args[3], undefined);
assert.deepStrictEqual(args[4], {
groupBy: 'scope'
});
Expand Down

0 comments on commit ec42877

Please sign in to comment.