-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(prepare): clean up remote
origin-with-token
after git push (#479)
* fix(prepare): clean up remote `origin-with-token` after git push * fix: update test snapshot
- Loading branch information
Eunjae Lee
authored
Dec 1, 2019
1 parent
51e5ab2
commit c81d247
Showing
2 changed files
with
15 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ describe('gitPush', () => { | |
" $ git remote add origin-with-token https://[email protected]/my/repo", | ||
] | ||
`); | ||
expect(run).toHaveBeenCalledTimes(3); | ||
expect(run).toHaveBeenCalledTimes(4); | ||
expect(run.mock.calls[0][0]).toMatchInlineSnapshot(` | ||
Object { | ||
"command": "git remote add origin-with-token https://[email protected]/my/repo", | ||
|
@@ -59,6 +59,14 @@ describe('gitPush', () => { | |
"dryRun": false, | ||
} | ||
`); | ||
expect(run.mock.calls[3][0]).toMatchInlineSnapshot(` | ||
Object { | ||
"command": "git remote remove origin-with-token", | ||
"dir": ".", | ||
"dryRun": false, | ||
"printCommand": false, | ||
} | ||
`); | ||
}); | ||
|
||
it('works without token', () => { | ||
|
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