updated list tests
This commit is contained in:
parent
906f49659f
commit
c50f6f324e
2 changed files with 9 additions and 0 deletions
|
|
@ -109,6 +109,11 @@ func TestIssueList(t *testing.T) {
|
|||
t.Errorf("error running command `issue list`: %v", err)
|
||||
}
|
||||
|
||||
eq(t, output.Stderr(), `
|
||||
3 issues in OWNER/REPO
|
||||
|
||||
`)
|
||||
|
||||
expectedIssues := []*regexp.Regexp{
|
||||
regexp.MustCompile(`(?m)^1\t.*won`),
|
||||
regexp.MustCompile(`(?m)^2\t.*too`),
|
||||
|
|
|
|||
|
|
@ -171,6 +171,10 @@ func TestPRList(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
|
||||
eq(t, output.Stderr(), `
|
||||
3 pull requests in OWNER/REPO
|
||||
|
||||
`)
|
||||
eq(t, output.String(), `32 New feature feature
|
||||
29 Fixed bad bug hubot:bug-fix
|
||||
28 Improve documentation docs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue