Skip to content

Commit

Permalink
Fix EOLs in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Apr 18, 2022
1 parent 1d2465d commit bc5f5e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const setup = () => {
const date = /\([0-9]{4}-[0-9]{2}-[0-9]{2}\)/.source;
const sha = /[0-9a-f]{7}/.source;
const header = (from, to, version) => `# \\[${version || to}\\]\\(/compare/${from}...${to}\\) ${date}`;
const features = '\\n\\n\\n### Features\\n';
const fixes = '\\n\\n\\n### Bug Fixes\\n';
const commit = (type, name) => `\\n\\* \\*\\*${name}:\\*\\* ${type} ${name} ${sha}`;
const features = EOL + EOL + EOL + '### Features' + EOL;
const fixes = EOL + EOL + EOL + '### Bug Fixes' + EOL;
const commit = (type, name) => EOL + `\\* \\*\\*${name}:\\*\\* ${type} ${name} ${sha}`;

test('should generate changelog using recommended bump (minor)', async () => {
setup();
Expand Down Expand Up @@ -238,7 +238,7 @@ test(`should write and update infile`, async () => {
add('fix', 'foo');
add('feat', 'bar');

const h = 'The header\n\nThe subheader';
const h = 'The header' + EOL + EOL + 'The subheader';
const infile = path.join(dir, 'CHANGES.md');
const [config, container] = getOptions({ preset, infile, header: h });
config.git.tag = true;
Expand Down

0 comments on commit bc5f5e3

Please sign in to comment.