Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
Simplify test avoiding #36
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Feb 25, 2021
1 parent ff23290 commit 9809519
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions generate-release-notes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,8 @@ test('generates changelog with custom date presets', async () => {

test('ensure that replacements aren’t applied in commit titles', async () => {
const output = await generateReleaseNotes({
range: 'v3.1.0..v3.2.0',
commitTemplate: '- {date} {title}',
releaseTemplate: '{commits}'
range: 'v3.1.0..v3.2.0'
});

expect(output).toEqual(dedent(`
- 2021-02-14 Add \`{date}\` replacement with options (#30)
- 2021-02-04 Update user in examples
- 2020-12-30 Bump node-notifier from 8.0.0 to 8.0.1 (#26)
- 2020-12-30 Bump ini from 1.3.5 to 1.3.8 (#24)
- 2020-10-23 Fix minor typo in readme headings
`));
expect(output).toEqual(expect.stringContaining('{date}'));
});

0 comments on commit 9809519

Please # to comment.