@@ -40,7 +40,7 @@ test.serial('Publish a release', async t => {
4040
4141 const result = await publish ( pluginConfig , { env, options, nextRelease, logger : t . context . logger } ) ;
4242
43- t . is ( result . url , `https://gitlab.com/${ encodedRepoId } /tags /${ encodedGitTag } ` ) ;
43+ t . is ( result . url , `https://gitlab.com/${ encodedRepoId } /-/releases /${ encodedGitTag } ` ) ;
4444 t . deepEqual ( t . context . log . args [ 0 ] , [ 'Published GitLab release: %s' , nextRelease . gitTag ] ) ;
4545 t . true ( gitlab . isDone ( ) ) ;
4646} ) ;
@@ -76,7 +76,7 @@ test.serial('Publish a release with assets', async t => {
7676
7777 const result = await publish ( { assets} , { env, cwd, options, nextRelease, logger : t . context . logger } ) ;
7878
79- t . is ( result . url , `https://gitlab.com/${ encodedRepoId } /tags /${ encodedGitTag } ` ) ;
79+ t . is ( result . url , `https://gitlab.com/${ encodedRepoId } /-/releases /${ encodedGitTag } ` ) ;
8080 t . deepEqual ( t . context . log . args [ 0 ] , [ 'Uploaded file: %s' , uploaded . url ] ) ;
8181 t . deepEqual ( t . context . log . args [ 1 ] , [ 'Published GitLab release: %s' , nextRelease . gitTag ] ) ;
8282 t . true ( gitlabUpload . isDone ( ) ) ;
@@ -105,7 +105,7 @@ test.serial('Publish a release with array of missing assets', async t => {
105105 . reply ( 200 ) ;
106106 const result = await publish ( { assets} , { env, cwd, options, nextRelease, logger : t . context . logger } ) ;
107107
108- t . is ( result . url , `https://gitlab.com/${ encodedRepoId } /tags /${ encodedGitTag } ` ) ;
108+ t . is ( result . url , `https://gitlab.com/${ encodedRepoId } /-/releases /${ encodedGitTag } ` ) ;
109109 t . deepEqual ( t . context . log . args [ 0 ] , [ 'Published GitLab release: %s' , nextRelease . gitTag ] ) ;
110110 t . true ( gitlab . isDone ( ) ) ;
111111} ) ;
@@ -142,7 +142,7 @@ test.serial('Publish a release with one asset and custom label', async t => {
142142
143143 const result = await publish ( { assets} , { env, cwd, options, nextRelease, logger : t . context . logger } ) ;
144144
145- t . is ( result . url , `https://gitlab.com/${ encodedRepoId } /tags /${ encodedGitTag } ` ) ;
145+ t . is ( result . url , `https://gitlab.com/${ encodedRepoId } /-/releases /${ encodedGitTag } ` ) ;
146146 t . deepEqual ( t . context . log . args [ 0 ] , [ 'Uploaded file: %s' , uploaded . url ] ) ;
147147 t . deepEqual ( t . context . log . args [ 1 ] , [ 'Published GitLab release: %s' , nextRelease . gitTag ] ) ;
148148 t . true ( gitlabUpload . isDone ( ) ) ;
@@ -170,7 +170,7 @@ test.serial('Publish a release with missing release notes', async t => {
170170
171171 const result = await publish ( pluginConfig , { env, options, nextRelease, logger : t . context . logger } ) ;
172172
173- t . is ( result . url , `https://gitlab.com/${ encodedRepoId } /tags /${ encodedGitTag } ` ) ;
173+ t . is ( result . url , `https://gitlab.com/${ encodedRepoId } /-/releases /${ encodedGitTag } ` ) ;
174174 t . deepEqual ( t . context . log . args [ 0 ] , [ 'Published GitLab release: %s' , nextRelease . gitTag ] ) ;
175175 t . true ( gitlab . isDone ( ) ) ;
176176} ) ;
0 commit comments