updated list tests

This commit is contained in:
UmairShahzad 2020-02-15 23:06:08 +05:00
parent 906f49659f
commit c50f6f324e
2 changed files with 9 additions and 0 deletions

View file

@ -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`),

View file

@ -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