summaryrefslogtreecommitdiffstats
path: root/pkg/commands/pull_request_test.go
diff options
context:
space:
mode:
authorWilliam Wagner Moraes Artero <williamwmoraes@gmail.com>2020-02-25 20:18:22 +0100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-01 10:57:12 +1100
commit3ce2b9b79ac909c772c2a2b56873b45b93f8d221 (patch)
tree7d6939205645b62dee08abe29cedaccb2151e6d3 /pkg/commands/pull_request_test.go
parenta79182e50d5dfd55389fab547110de24bb18ae87 (diff)
chore: keeping coverage up :D
Diffstat (limited to 'pkg/commands/pull_request_test.go')
-rw-r--r--pkg/commands/pull_request_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/commands/pull_request_test.go b/pkg/commands/pull_request_test.go
index 4db29f518..88a012bf2 100644
--- a/pkg/commands/pull_request_test.go
+++ b/pkg/commands/pull_request_test.go
@@ -147,6 +147,13 @@ func TestCreatePullRequest(t *testing.T) {
gitCommand := NewDummyGitCommand()
gitCommand.OSCommand.command = s.command
gitCommand.OSCommand.Config.GetUserConfig().Set("os.openLinkCommand", "open {{link}}")
+ gitCommand.Config.GetUserConfig().Set("services", map[string]string{
+ // valid configuration for a custom service URL
+ "git.work.com": "gitlab:code.work.com",
+ // invalid configurations for a custom service URL
+ "invalid.work.com": "noservice:invalid.work.com",
+ "noservice.work.com": "noservice.work.com",
+ })
dummyPullRequest := NewPullRequest(gitCommand)
s.test(dummyPullRequest.Create(s.branch))
})