Skip to content

Commit 649e30c

Browse files
committed
Fix ask stubs in repo create tests
1 parent 0cb4b7a commit 649e30c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/cmd/repo/create/create_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func Test_createRun(t *testing.T) {
175175
as.Stub([]*prompt.QuestionStub{
176176
{Name: "repoName", Value: "REPO"},
177177
{Name: "repoDescription", Value: "my new repo"},
178-
{Name: "repoVisibility", Value: "PRIVATE"},
178+
{Name: "repoVisibility", Value: "Private"},
179179
})
180180
as.Stub([]*prompt.QuestionStub{
181181
{Name: "addGitIgnore", Value: true}})
@@ -214,7 +214,7 @@ func Test_createRun(t *testing.T) {
214214
as.Stub([]*prompt.QuestionStub{
215215
{Name: "repoName", Value: "REPO"},
216216
{Name: "repoDescription", Value: "my new repo"},
217-
{Name: "repoVisibility", Value: "PRIVATE"},
217+
{Name: "repoVisibility", Value: "Private"},
218218
})
219219
as.Stub([]*prompt.QuestionStub{
220220
{Name: "addGitIgnore", Value: false}})
@@ -237,7 +237,7 @@ func Test_createRun(t *testing.T) {
237237
as.Stub([]*prompt.QuestionStub{
238238
{Name: "repoName", Value: "REPO"},
239239
{Name: "repoDescription", Value: "my new repo"},
240-
{Name: "repoVisibility", Value: "PRIVATE"},
240+
{Name: "repoVisibility", Value: "Private"},
241241
})
242242
as.StubOne(false)
243243
},
@@ -274,7 +274,7 @@ func Test_createRun(t *testing.T) {
274274
as.Stub([]*prompt.QuestionStub{
275275
{Name: "repoName", Value: "REPO"},
276276
{Name: "repoDescription", Value: "my new repo"},
277-
{Name: "repoVisibility", Value: "PRIVATE"},
277+
{Name: "repoVisibility", Value: "Private"},
278278
})
279279
as.StubOne(true) //ask for adding a remote
280280
as.StubOne("origin") //ask for remote name
@@ -314,7 +314,7 @@ func Test_createRun(t *testing.T) {
314314
as.Stub([]*prompt.QuestionStub{
315315
{Name: "repoName", Value: "REPO"},
316316
{Name: "repoDescription", Value: "my new repo"},
317-
{Name: "repoVisibility", Value: "PRIVATE"},
317+
{Name: "repoVisibility", Value: "Private"},
318318
})
319319
as.StubOne(true) //ask for adding a remote
320320
as.StubOne("origin") //ask for remote name

0 commit comments

Comments
 (0)