From c50f6f324e97c9b4192f2ccb7aaad9ceec67ee18 Mon Sep 17 00:00:00 2001 From: UmairShahzad <18100099@lums.edu.pk> Date: Sat, 15 Feb 2020 23:06:08 +0500 Subject: [PATCH] updated list tests --- command/issue_test.go | 5 +++++ command/pr_test.go | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/command/issue_test.go b/command/issue_test.go index ba36101d4..e67e62fb2 100644 --- a/command/issue_test.go +++ b/command/issue_test.go @@ -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`), diff --git a/command/pr_test.go b/command/pr_test.go index 66c59d4d8..7f3555733 100644 --- a/command/pr_test.go +++ b/command/pr_test.go @@ -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