You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t.is(HostedGit.fromUrl('git+https://github.com:foo/repo.git#master').https(),'git+https://github.com/foo/repo.git#master','scp style urls are upgraded')
28
+
29
+
t.is(HostedGit.fromUrl(''),undefined,'empty strings are not hosted')
30
+
t.is(HostedGit.fromUrl(null),undefined,'null is not hosted')
31
+
t.is(HostedGit.fromUrl(),undefined,'no value is not hosted')
32
+
t.is(HostedGit.fromUrl('git+file:///foo/bar'),undefined,'url that has no host')
33
+
t.is(HostedGit.fromUrl('github.com/abc/def/'),undefined,'forgot the protocol')
34
+
t.is(HostedGit.fromUrl('completely-invalid'),undefined,'not a url is not hosted')
0 commit comments