-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea26e3a
commit fbf9390
Showing
5 changed files
with
10 additions
and
10 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 |
---|---|---|
|
@@ -8,7 +8,7 @@ const { promisify } = require('util') | |
const writeFile = promisify(require('fs').writeFile) | ||
const write = (file, data) => writeFile(resolve(repo, file), data) | ||
|
||
t.test('create git repo', t => | ||
t.test('create git repo', () => | ||
spawn(['init'], { cwd: repo }) | ||
.then(() => spawn(['config', 'user.name', 'pacotedev'], { cwd: repo })) | ||
.then(() => spawn(['config', 'user.email', '[email protected]'], { cwd: repo })) | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ const fixMainBranch = (err) => { | |
return git('init') | ||
} | ||
const write = (f, c) => fs.writeFileSync(`${repo}/${f}`, c) | ||
t.test('setup', t => | ||
t.test('setup', () => | ||
git('init', '-b', mainBranch).catch(fixMainBranch) | ||
.then(() => git('config', 'user.name', 'pacotedev')) | ||
.then(() => git('config', 'user.email', '[email protected]')) | ||
|
@@ -57,7 +57,7 @@ t.test('point latest at HEAD', t => | |
latest: '69.42.0', | ||
}))) | ||
|
||
t.test('add a latest branch, point to 1.2.3 version', t => | ||
t.test('add a latest branch, point to 1.2.3 version', () => | ||
git('checkout', '-b', 'latest') | ||
.then(() => git('reset', '--hard', 'version-1.2.3')) | ||
.then(() => git('checkout', mainBranch)) | ||
|
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