Fix failing test for pr and issue create
This commit is contained in:
parent
be3b6cbd8d
commit
da945314fd
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue