@@ -121,13 +121,15 @@ test("skill uploader uses the repository override", async (context) => {
121121
122122test ( "skill uploader percent-encodes UTF-8 filenames" , async ( context ) => {
123123 const repository = await temporaryRepository ( context ) ;
124- const file = join ( repository , UNICODE_FILENAME ) ;
124+ const filename = `--${ UNICODE_FILENAME } ` ;
125+ const file = join ( repository , filename ) ;
126+ const markdown = `[${ filename } ](https://example.test/a/id/${ encodeURIComponent ( filename ) } )` ;
125127 await writeFile ( file , "unicode attachment\n" ) ;
126128 const serviceUrl = await startServer ( context , {
127129 alt : "Unicode skill" ,
128130 body : "unicode attachment\n" ,
129- filename : UNICODE_FILENAME ,
130- markdown : UNICODE_MARKDOWN . trim ( ) ,
131+ filename,
132+ markdown,
131133 token : "unicode-skill-token" ,
132134 } ) ;
133135
@@ -144,7 +146,7 @@ test("skill uploader percent-encodes UTF-8 filenames", async (context) => {
144146
145147 assert . equal ( result . stderr , "" ) ;
146148 assert . equal ( result . exitCode , 0 ) ;
147- assert . equal ( result . stdout , UNICODE_MARKDOWN ) ;
149+ assert . equal ( result . stdout , ` ${ markdown } \n` ) ;
148150} ) ;
149151
150152test ( "skill uploader reads the user-level service profile" , async ( context ) => {
0 commit comments