@@ -105,7 +105,7 @@ test('string methods populate correctly', () => {
105105 'https://git.sr.ht/~foo/bar/tree/HEAD/lib/index.js#l100'
106106 )
107107 assert . strictEqual ( parsed . docs ( ) , 'https://git.sr.ht/~foo/bar#readme' )
108- assert . strictEqual ( parsed . https ( ) , 'https://git.sr.ht/~foo/bar.git ' )
108+ assert . strictEqual ( parsed . https ( ) , 'https://git.sr.ht/~foo/bar' )
109109 assert . strictEqual ( parsed . shortcut ( ) , 'sourcehut:~foo/bar' )
110110 assert . strictEqual ( parsed . path ( ) , '~foo/bar' )
111111 assert . strictEqual ( parsed . tarball ( ) , 'https://git.sr.ht/~foo/bar/archive/HEAD.tar.gz' )
@@ -123,7 +123,7 @@ test('string methods populate correctly', () => {
123123
124124 const extra = HostedGit . fromUrl ( 'https://@git.sr.ht/~foo/bar#fix/bug' )
125125 assert . strictEqual ( extra . hash ( ) , '#fix/bug' )
126- assert . strictEqual ( extra . https ( ) , 'https://git.sr.ht/~foo/bar.git #fix/bug' )
126+ assert . strictEqual ( extra . https ( ) , 'https://git.sr.ht/~foo/bar#fix/bug' )
127127 assert . strictEqual ( extra . shortcut ( ) , 'sourcehut:~foo/bar#fix/bug' )
128128 assert . strictEqual ( extra . ssh ( ) , '[email protected] :~foo/bar.git#fix/bug' ) 129129 assert . strictEqual ( extra . sshurl ( ) , 'git+ssh://[email protected] /~foo/bar.git#fix/bug' )
0 commit comments