@@ -131,9 +131,8 @@ test.serial('Publish a release with an array of assets', async t => {
131
131
const repo = 'test_repo' ;
132
132
const env = { GITHUB_TOKEN : 'github_token' } ;
133
133
const assets = [
134
- 'upload.txt' ,
135
- { path : [ '*.txt' , '!**/*_other.txt' ] , name : 'upload_file_name.txt' } ,
136
- { path : [ '*.txt' ] , name : 'other_file.txt' , label : 'Other File' } ,
134
+ { path : [ 'upload.txt' ] , name : 'upload_file_name.txt' } ,
135
+ { path : [ 'upload_other.txt' ] , name : 'other_file.txt' , label : 'Other File' } ,
137
136
] ;
138
137
const nextRelease = { version : '1.0.0' , gitHead : '123' , gitTag : 'v1.0.0' , notes : 'Test release note body' } ;
139
138
const options = { branch : 'master' , repositoryUrl : `https://github.com/${ owner } /${ repo } .git` } ;
@@ -163,7 +162,7 @@ test.serial('Publish a release with an array of assets', async t => {
163
162
uploadUrl : 'https://github.com' ,
164
163
contentLength : ( await stat ( path . resolve ( cwd , 'upload_other.txt' ) ) ) . size ,
165
164
} )
166
- . post ( `${ uploadUri } ?name=${ escape ( 'upload_other .txt' ) } &label=${ escape ( 'Other File' ) } ` )
165
+ . post ( `${ uploadUri } ?name=${ escape ( 'other_file .txt' ) } &label=${ escape ( 'Other File' ) } ` )
167
166
. reply ( 200 , { browser_download_url : otherAssetUrl } ) ;
168
167
169
168
const result = await t . context . m . publish ( { assets} , { cwd, env, options, nextRelease, logger : t . context . logger } ) ;
0 commit comments