diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 18:34:01 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 20:48:49 +1000 |
commit | 44248d9ab0818dfca6a5c1f5ee2ad5b0d45d4998 (patch) | |
tree | 832829129b6cc3690fc51e2c254d8b71d0de4657 /pkg/commands/pull_request_test.go | |
parent | c87b2c02fa2c82dd07a77335df6c7d2e7817a012 (diff) |
pull branch model out into models package
Diffstat (limited to 'pkg/commands/pull_request_test.go')
-rw-r--r-- | pkg/commands/pull_request_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/commands/pull_request_test.go b/pkg/commands/pull_request_test.go index 88a012bf2..c75551592 100644 --- a/pkg/commands/pull_request_test.go +++ b/pkg/commands/pull_request_test.go @@ -46,7 +46,7 @@ func TestGetRepoInfoFromURL(t *testing.T) { func TestCreatePullRequest(t *testing.T) { type scenario struct { testName string - branch *Branch + branch *models.Branch command func(string, ...string) *exec.Cmd test func(err error) } @@ -54,7 +54,7 @@ func TestCreatePullRequest(t *testing.T) { scenarios := []scenario{ { "Opens a link to new pull request on bitbucket", - &Branch{ + &models.Branch{ Name: "feature/profile-page", }, func(cmd string, args ...string) *exec.Cmd { @@ -73,7 +73,7 @@ func TestCreatePullRequest(t *testing.T) { }, { "Opens a link to new pull request on bitbucket with http remote url", - &Branch{ + &models.Branch{ Name: "feature/events", }, func(cmd string, args ...string) *exec.Cmd { @@ -92,7 +92,7 @@ func TestCreatePullRequest(t *testing.T) { }, { "Opens a link to new pull request on github", - &Branch{ + &models.Branch{ Name: "feature/sum-operation", }, func(cmd string, args ...string) *exec.Cmd { @@ -111,7 +111,7 @@ func TestCreatePullRequest(t *testing.T) { }, { "Opens a link to new pull request on gitlab", - &Branch{ + &models.Branch{ Name: "feature/ui", }, func(cmd string, args ...string) *exec.Cmd { @@ -130,7 +130,7 @@ func TestCreatePullRequest(t *testing.T) { }, { "Throws an error if git service is unsupported", - &Branch{ + &models.Branch{ Name: "feature/divide-operation", }, func(cmd string, args ...string) *exec.Cmd { |