Add extra test cases for testing git slugs

This commit is contained in:
Dan Sosedoff committed 2019-02-14 14:35:02 -06:00
1 parent fb77d5a883
commit 6addc48cde
1 file changed
+2
+2
View File
@@ -25,6 +25,8 @@ func TestFindGitSlug(t *testing.T) {
{"[email protected]:nektos/act.git", "GitHub", "nektos/act"},
{"https://github.com/nektos/act.git", "GitHub", "nektos/act"},
{"http://github.com/nektos/act.git", "GitHub", "nektos/act"},
{"https://github.com/nektos/act", "GitHub", "nektos/act"},
{"http://github.com/nektos/act", "GitHub", "nektos/act"},
{"git+ssh://[email protected]/owner/repo.git", "GitHub", "owner/repo"},
{"http://myotherrepo.com/act.git", "", "http://myotherrepo.com/act.git"},
}