Skip to content

Commit

Permalink
Add backtick characters to test data
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Jan 14, 2019
1 parent c0389af commit ab73c8a
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions scripts/generate-test-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const remote = {
const options = {
unreleased: false,
commitLimit: 3,
backfillLimit: 3,
tagPrefix: ''
}

Expand Down
4 changes: 2 additions & 2 deletions test/data/commits-no-remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export default [
"email": "[email protected]",
"date": "2015-12-29T21:18:19.000Z",
"tag": null,
"subject": "Commit that fixes nothing",
"message": "Commit that fixes nothing",
"subject": "Commit that fixes nothing with `backticks`",
"message": "Commit that fixes nothing with `backticks`",
"fixes": null,
"merge": null,
"href": null,
Expand Down
4 changes: 2 additions & 2 deletions test/data/commits.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export default [
"email": "[email protected]",
"date": "2015-12-29T21:18:19.000Z",
"tag": null,
"subject": "Commit that fixes nothing",
"message": "Commit that fixes nothing",
"subject": "Commit that fixes nothing with `backticks`",
"message": "Commit that fixes nothing with `backticks`",
"fixes": null,
"merge": null,
"href": "https://github.com/user/repo/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617",
Expand Down
2 changes: 1 addition & 1 deletion test/data/git-log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ __AUTO_CHANGELOG_MESSAGE_SEPARATOR__
2015-12-29 21:18:19 +0000
Pete Cook
[email protected]
Commit that fixes nothing
Commit that fixes nothing with `backticks`
__AUTO_CHANGELOG_MESSAGE_SEPARATOR__
1 files changed, 2 insertions(+), 3 deletions(-)

Expand Down
4 changes: 2 additions & 2 deletions test/data/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export default [
"email": "[email protected]",
"date": "2015-12-29T21:18:19.000Z",
"tag": null,
"subject": "Commit that fixes nothing",
"message": "Commit that fixes nothing",
"subject": "Commit that fixes nothing with `backticks`",
"message": "Commit that fixes nothing with `backticks`",
"fixes": null,
"merge": null,
"href": "https://github.com/user/repo/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617",
Expand Down
2 changes: 1 addition & 1 deletion test/data/template-compact-no-remote.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

> 29 December 2015
- Commit that fixes nothing
- Commit that fixes nothing with `backticks`
- Another commit that fixes nothing but with less changes

#### v0.0.2
Expand Down
2 changes: 1 addition & 1 deletion test/data/template-compact.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

> 29 December 2015
- Commit that fixes nothing [`12c0624`](https://github.com/user/repo/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617)
- Commit that fixes nothing with `backticks` [`12c0624`](https://github.com/user/repo/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617)
- Another commit that fixes nothing but with less changes [`e9a43b2`](https://github.com/user/repo/commit/e9a43b2bf50449fc0d84465308e6008cc1597bb3)

#### [v0.0.2](https://github.com/user/repo/compare/v0.0.1...v0.0.2)
Expand Down
4 changes: 2 additions & 2 deletions test/data/template-json.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"email": "[email protected]",
"date": "2015-12-29T21:18:19.000Z",
"tag": null,
"subject": "Commit that fixes nothing",
"message": "Commit that fixes nothing",
"subject": "Commit that fixes nothing with `backticks`",
"message": "Commit that fixes nothing with `backticks`",
"fixes": null,
"merge": null,
"href": "https://github.com/user/repo/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617",
Expand Down
2 changes: 1 addition & 1 deletion test/data/template-keepachangelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### Commits

- Commit that fixes nothing [`12c0624`](https://github.com/user/repo/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617)
- Commit that fixes nothing with `backticks` [`12c0624`](https://github.com/user/repo/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617)
- Another commit that fixes nothing but with less changes [`e9a43b2`](https://github.com/user/repo/commit/e9a43b2bf50449fc0d84465308e6008cc1597bb3)

## [v0.0.2](https://github.com/user/repo/compare/v0.0.1...v0.0.2) - 2015-12-28
Expand Down
4 changes: 2 additions & 2 deletions test/matches-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ describe('matches helper', () => {
it('matches on field value', () => {
const matches =
'{{#matches href "12c0624"}}\n' +
'- {{message}}\n' +
'- {{{message}}}\n' +
'{{/matches}}\n'
const expected =
'- Commit that fixes nothing\n'
'- Commit that fixes nothing with `backticks`\n'
expect(compileCommits(matches)({ releases })).to.equal(expected)
})

Expand Down

0 comments on commit ab73c8a

Please sign in to comment.