File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ describe('markdown utils', () => {
152152 const pkg = createMockPkg ( {
153153 repository : {
154154 type : 'git' ,
155- url : '/local/path/to/repo ' ,
155+ url : '' ,
156156 } ,
157157 } )
158158 const version = createMockVersion ( )
@@ -201,16 +201,15 @@ describe('markdown utils', () => {
201201 expect ( result ) . toContain ( '- [Repository](https://github.com/user/repo)' )
202202 } )
203203
204- it ( 'handles GitHub shorthand string repository' , ( ) => {
204+ it ( 'handles empty string repository' , ( ) => {
205205 const pkg = createMockPkg ( {
206- repository : 'github:user/repo ' as any ,
206+ repository : '' as any ,
207207 } )
208208 const version = createMockVersion ( )
209209
210210 const result = generatePackageMarkdown ( { pkg, version } )
211211
212- // github:user/repo is treated as SCP-style by normalizeGitUrl → https://github/user/repo
213- expect ( result ) . toContain ( '- [Repository](https://github/user/repo)' )
212+ expect ( result ) . not . toContain ( '- [Repository]' )
214213 } )
215214
216215 it ( 'includes homepage link when different from repo' , ( ) => {
You can’t perform that action at this time.
0 commit comments