Fix test output
This commit is contained in:
parent
58761a8dfc
commit
f2afbbce74
3 changed files with 20 additions and 4 deletions
|
|
@ -133,7 +133,11 @@ func TestIssueList_withFlags(t *testing.T) {
|
|||
}
|
||||
|
||||
eq(t, output.String(), "")
|
||||
eq(t, output.Stderr(), "No issues match your search\n")
|
||||
eq(t, output.Stderr(), `
|
||||
Issues for OWNER/REPO
|
||||
|
||||
No issues match your search
|
||||
`)
|
||||
|
||||
bodyBytes, _ := ioutil.ReadAll(http.Requests[0].Body)
|
||||
reqBody := struct {
|
||||
|
|
|
|||
|
|
@ -116,7 +116,11 @@ func TestPRCreate_web(t *testing.T) {
|
|||
eq(t, err, nil)
|
||||
|
||||
eq(t, output.String(), "")
|
||||
eq(t, output.Stderr(), "Opening https://github.com/OWNER/REPO/pull/feature in your browser.\n")
|
||||
eq(t, output.Stderr(), `
|
||||
Creating pull request for feature into master in OWNER/REPO
|
||||
|
||||
Opening https://github.com/OWNER/REPO/pull/feature in your browser.
|
||||
`)
|
||||
|
||||
eq(t, len(ranCommands), 3)
|
||||
eq(t, strings.Join(ranCommands[1], " "), "git push --set-upstream origin HEAD:feature")
|
||||
|
|
@ -155,5 +159,9 @@ func TestPRCreate_ReportsUncommittedChanges(t *testing.T) {
|
|||
eq(t, err, nil)
|
||||
|
||||
eq(t, output.String(), "https://github.com/OWNER/REPO/pull/12\n")
|
||||
eq(t, output.Stderr(), "Warning: 1 uncommitted change\n")
|
||||
eq(t, output.Stderr(), `Warning: 1 uncommitted change
|
||||
|
||||
Creating pull request for feature into master in OWNER/REPO
|
||||
|
||||
`)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -183,7 +183,11 @@ func TestPRList_filtering(t *testing.T) {
|
|||
}
|
||||
|
||||
eq(t, output.String(), "")
|
||||
eq(t, output.Stderr(), "No pull requests match your search\n")
|
||||
eq(t, output.Stderr(), `
|
||||
Pull requests for OWNER/REPO
|
||||
|
||||
No pull requests match your search
|
||||
`)
|
||||
|
||||
bodyBytes, _ := ioutil.ReadAll(http.Requests[0].Body)
|
||||
reqBody := struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue