File tree Expand file tree Collapse file tree 2 files changed +3
-23
lines changed Expand file tree Collapse file tree 2 files changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -265,24 +265,4 @@ describe('RepoHeader Source Display', () => {
265
265
wrapper . findComponent ( { name : 'RepoHeaderSourceIcon' } ) . props ( 'source' )
266
266
) . toBe ( 'HuggingFace' )
267
267
} )
268
-
269
- it ( 'displays OpenCSG source with cleaned path' , async ( ) => {
270
- mockRepoDetailStore . hfPath = null
271
- mockRepoDetailStore . csgPath = 'cleaned_path'
272
-
273
- const wrapper = createWrapper ( )
274
- const sourceIcon = wrapper . findComponent ( { name : 'RepoHeaderSourceIcon' } )
275
-
276
- expect ( sourceIcon . props ( 'source' ) ) . toBe ( 'OpenCSG' )
277
- expect ( sourceIcon . props ( 'sourcePath' ) ) . toBe ( 'cleaned_path' )
278
- } )
279
-
280
- it ( 'handles CSG_ prefixed path correctly' , async ( ) => {
281
- mockRepoDetailStore . hfPath = null
282
- mockRepoDetailStore . msPath = null
283
- mockRepoDetailStore . csgPath = null
284
-
285
- const wrapper = createWrapper ( )
286
- expect ( wrapper . vm . repoSourcePath ) . toBe ( '123' )
287
- } )
288
268
} )
Original file line number Diff line number Diff line change 18
18
nickname.trim() === '' ? name : nickname
19
19
}}</span >
20
20
<RepoHeaderSourceIcon
21
- v-if =" repoDetailStore.source !== 'local' "
21
+ v-if =" !!repoSource "
22
22
:repoType =" repoType"
23
23
:source =" repoSource"
24
24
:sourcePath =" repoSourcePath"
113
113
nickname.trim() === '' ? name : nickname
114
114
}}</span >
115
115
<RepoHeaderSourceIcon
116
- v-if =" repoDetailStore.source !== 'local' "
116
+ v-if =" !!repoSource "
117
117
:repoType =" repoType"
118
118
:source =" repoSource"
119
119
:sourcePath =" repoSourcePath"
335
335
} else if (repoDetailStore .msPath ) {
336
336
return ' ModelScope'
337
337
} else {
338
- return ' OpenCSG '
338
+ return ' '
339
339
}
340
340
})
341
341
You can’t perform that action at this time.
0 commit comments