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:
chris48s
2020-01-07 21:13:48 +00:00
committed by repo-ranger[bot]
parent d8863805d0
commit 347e0a81f3
44 changed files with 137 additions and 277 deletions

View File

@@ -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')