set followRedirect: false by default in tests (#4491)
* set followRedirect: false by default in tests * update tests implicitly relying on redirects Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
committed by
repo-ranger[bot]
parent
d8863805d0
commit
347e0a81f3
@@ -34,15 +34,15 @@ t.create('Tag (repo not found)')
|
||||
|
||||
// redirects
|
||||
t.create('Tag (legacy route: tag)')
|
||||
.get('/tag/photonstorm/phaser.svg', { followRedirect: false })
|
||||
.get('/tag/photonstorm/phaser.svg')
|
||||
.expectRedirect('/github/v/tag/photonstorm/phaser.svg?sort=semver')
|
||||
|
||||
t.create('Tag (legacy route: tag-pre)')
|
||||
.get('/tag-pre/photonstorm/phaser.svg', { followRedirect: false })
|
||||
.get('/tag-pre/photonstorm/phaser.svg')
|
||||
.expectRedirect(
|
||||
'/github/v/tag/photonstorm/phaser.svg?include_prereleases&sort=semver'
|
||||
)
|
||||
|
||||
t.create('Tag (legacy route: tag-date)')
|
||||
.get('/tag-date/photonstorm/phaser.svg', { followRedirect: false })
|
||||
.get('/tag-date/photonstorm/phaser.svg')
|
||||
.expectRedirect('/github/v/tag/photonstorm/phaser.svg')
|
||||
|
||||
Reference in New Issue
Block a user