Fix failing test for pr and issue create

This commit is contained in:
Tyler McGoffin 2024-10-08 16:11:05 -07:00
parent be3b6cbd8d
commit da945314fd
2 changed files with 4 additions and 4 deletions

View file

@ -611,7 +611,7 @@ func TestIssueCreate_recover(t *testing.T) {
pm := &prompter.PrompterMock{}
pm.InputFunc = func(p, d string) (string, error) {
if p == "Title" {
if p == "Title (required)" {
return d, nil
} else {
return "", prompter.NoSuchPromptErr(p)
@ -736,7 +736,7 @@ func TestIssueCreate_continueInBrowser(t *testing.T) {
pm := &prompter.PrompterMock{}
pm.InputFunc = func(p, d string) (string, error) {
if p == "Title" {
if p == "Title (required)" {
return "hello", nil
} else {
return "", prompter.NoSuchPromptErr(p)

View file

@ -1210,7 +1210,7 @@ func Test_createRun(t *testing.T) {
},
promptStubs: func(pm *prompter.PrompterMock) {
pm.InputFunc = func(p, d string) (string, error) {
if p == "Title" {
if p == "Title (required)" {
return d, nil
} else {
return "", prompter.NoSuchPromptErr(p)
@ -1316,7 +1316,7 @@ func Test_createRun(t *testing.T) {
}
pm.InputFunc = func(p, d string) (string, error) {
if p == "Title" {
if p == "Title (required)" {
return d, nil
} else if p == "Body" {
return d, nil