This commit is contained in:
Toshiya Doi 2020-03-18 10:03:04 +09:00
parent 327a804959
commit a5bd3130c4
2 changed files with 0 additions and 3 deletions

View file

@ -593,7 +593,6 @@ func TestIssueStateTitleWithColor(t *testing.T) {
state string
want string
}{
"Open state": {state: "OPEN", want: "Open"},
"Closed state": {state: "CLOSED", want: "Closed"},
}

View file

@ -845,12 +845,10 @@ func TestReplaceExcessiveWhitespace(t *testing.T) {
}
func TestPrStateTitleWithColor(t *testing.T) {
tests := map[string]struct {
pr api.PullRequest
want string
}{
"Format OPEN state": {pr: api.PullRequest{State: "OPEN", IsDraft: false}, want: "Open"},
"Format OPEN state for Draft PR": {pr: api.PullRequest{State: "OPEN", IsDraft: true}, want: "Draft"},
"Format CLOSED state": {pr: api.PullRequest{State: "CLOSED", IsDraft: false}, want: "Closed"},