This commit is contained in:
parent
a95eac709a
commit
d543b1acd5
@ -1,5 +1,8 @@
|
||||
module ParseTest exposing
|
||||
( invalidHostInUrlBitbucket
|
||||
( emptyBranchGitHub
|
||||
, emptyRepoGitHub
|
||||
, emptyUserGitHub
|
||||
, invalidHostInUrlBitbucket
|
||||
, invalidHostInUrlGitHub
|
||||
, invalidHostInUrlGitLab
|
||||
, invalidUrlBitbucket
|
||||
@ -66,6 +69,24 @@ invalidUrlGitHub =
|
||||
(\_ -> Expect.equal Nothing (parseUrl "https://GiThUb.CoM/user"))
|
||||
|
||||
|
||||
emptyUserGitHub : Test
|
||||
emptyUserGitHub =
|
||||
test "Parsing Empty User URL for GitHub"
|
||||
(\_ -> Expect.equal Nothing (parseUrl "https://GiThUb.CoM//repo/blob/master/README.md"))
|
||||
|
||||
|
||||
emptyRepoGitHub : Test
|
||||
emptyRepoGitHub =
|
||||
test "Parsing Empty Repo URL for GitHub"
|
||||
(\_ -> Expect.equal Nothing (parseUrl "https://GiThUb.CoM/user//blob/master/README.md"))
|
||||
|
||||
|
||||
emptyBranchGitHub : Test
|
||||
emptyBranchGitHub =
|
||||
test "Parsing Empty Branch URL for GitHub"
|
||||
(\_ -> Expect.equal Nothing (parseUrl "https://GiThUb.CoM/user/repo/blob//README.md"))
|
||||
|
||||
|
||||
invalidHostInUrlGitHub : Test
|
||||
invalidHostInUrlGitHub =
|
||||
test "Parsing Invalid Host in URL for GitHub"
|
||||
|
Loading…
Reference in New Issue
Block a user