Skip to content

Commit

Permalink
test: fix git tests on CI (#1)
Browse files Browse the repository at this point in the history
Looks like we need to initialize the user name and email for commit to work.
  • Loading branch information
alangpierce authored Aug 28, 2016
1 parent 00582d4 commit 0aa92ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ describe('convert', () => {
it('generates git commits converting the files', async function() {
await runWithTemplateDir('simple-success', async function() {
await exec('git init');
await exec('git config user.name "Sample User"');
await exec('git config user.email "[email protected]"');
await exec('git add -A');
await exec('git commit -m "Initial commit"');
let decaffeinateStdout = await runCli('convert');
Expand Down

0 comments on commit 0aa92ec

Please sign in to comment.