From 649e30ce2a7a1d92b1843ea542b0dae23cc69144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 13 Jan 2022 11:17:42 +0100 Subject: [PATCH] Fix ask stubs in `repo create` tests --- pkg/cmd/repo/create/create_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/cmd/repo/create/create_test.go b/pkg/cmd/repo/create/create_test.go index 9048845fd..d27da66b5 100644 --- a/pkg/cmd/repo/create/create_test.go +++ b/pkg/cmd/repo/create/create_test.go @@ -175,7 +175,7 @@ func Test_createRun(t *testing.T) { as.Stub([]*prompt.QuestionStub{ {Name: "repoName", Value: "REPO"}, {Name: "repoDescription", Value: "my new repo"}, - {Name: "repoVisibility", Value: "PRIVATE"}, + {Name: "repoVisibility", Value: "Private"}, }) as.Stub([]*prompt.QuestionStub{ {Name: "addGitIgnore", Value: true}}) @@ -214,7 +214,7 @@ func Test_createRun(t *testing.T) { as.Stub([]*prompt.QuestionStub{ {Name: "repoName", Value: "REPO"}, {Name: "repoDescription", Value: "my new repo"}, - {Name: "repoVisibility", Value: "PRIVATE"}, + {Name: "repoVisibility", Value: "Private"}, }) as.Stub([]*prompt.QuestionStub{ {Name: "addGitIgnore", Value: false}}) @@ -237,7 +237,7 @@ func Test_createRun(t *testing.T) { as.Stub([]*prompt.QuestionStub{ {Name: "repoName", Value: "REPO"}, {Name: "repoDescription", Value: "my new repo"}, - {Name: "repoVisibility", Value: "PRIVATE"}, + {Name: "repoVisibility", Value: "Private"}, }) as.StubOne(false) }, @@ -274,7 +274,7 @@ func Test_createRun(t *testing.T) { as.Stub([]*prompt.QuestionStub{ {Name: "repoName", Value: "REPO"}, {Name: "repoDescription", Value: "my new repo"}, - {Name: "repoVisibility", Value: "PRIVATE"}, + {Name: "repoVisibility", Value: "Private"}, }) as.StubOne(true) //ask for adding a remote as.StubOne("origin") //ask for remote name @@ -314,7 +314,7 @@ func Test_createRun(t *testing.T) { as.Stub([]*prompt.QuestionStub{ {Name: "repoName", Value: "REPO"}, {Name: "repoDescription", Value: "my new repo"}, - {Name: "repoVisibility", Value: "PRIVATE"}, + {Name: "repoVisibility", Value: "Private"}, }) as.StubOne(true) //ask for adding a remote as.StubOne("origin") //ask for remote name