-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use "Decaffeinate" as the author name in all generated commits (#7)
This makes the situation more clear for people reading `git blame` later.
- Loading branch information
1 parent
ff9388e
commit cbb376e
Showing
3 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ async function runCli(args) { | |
return (await exec(`"${originalCwd}/bin/bulk-decaffeinate" \ | ||
--decaffeinate-path "${originalCwd}/node_modules/.bin/decaffeinate" \ | ||
--eslint-path "${originalCwd}/node_modules/.bin/eslint" \ | ||
${args}`)).toString(); | ||
${args}`))[0]; | ||
} | ||
|
||
function assertIncludes(stdout, substr) { | ||
|
@@ -109,11 +109,14 @@ describe('convert', () => { | |
let decaffeinateStdout = await runCli('convert'); | ||
assertIncludes(decaffeinateStdout, 'Successfully ran decaffeinate'); | ||
|
||
let logStdout = (await exec('git log --pretty=%s')).toString(); | ||
assertIncludes(logStdout, `\ | ||
Decaffeinate: Convert 2 files to JS | ||
Decaffeinate: Rename 2 files from .coffee to .js | ||
Initial commit`); | ||
let logStdout = (await exec('git log --pretty="%an <%ae> %s"'))[0]; | ||
assert.equal(logStdout, `\ | ||
Decaffeinate <[email protected]> Decaffeinate: Run post-processing cleanups on 2 files | ||
Decaffeinate <[email protected]> Decaffeinate: Convert 2 files to JS | ||
Decaffeinate <[email protected]> Decaffeinate: Rename 2 files from .coffee to .js | ||
Sample User <[email protected]> Initial commit | ||
` | ||
); | ||
}); | ||
}); | ||
|
||
|