Update tests

This commit is contained in:
Corey Johnson 2019-11-06 10:02:35 -08:00
parent b50898f05b
commit 738562436f
2 changed files with 4 additions and 4 deletions

View file

@ -8,17 +8,17 @@ import (
"github.com/github/gh-cli/test"
)
func TestIssueList(t *testing.T) {
func TestIssueStatus(t *testing.T) {
initBlankContext("OWNER/REPO", "master")
http := initFakeHTTP()
jsonFile, _ := os.Open("../test/fixtures/issueList.json")
jsonFile, _ := os.Open("../test/fixtures/issueStatus.json")
defer jsonFile.Close()
http.StubResponse(200, jsonFile)
output, err := test.RunCommand(RootCmd, "issue list")
output, err := test.RunCommand(RootCmd, "issue status")
if err != nil {
t.Errorf("error running command `issue list`: %v", err)
t.Errorf("error running command `issue status`: %v", err)
}
expectedIssues := []*regexp.Regexp{