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

@@ -22,6 +22,14 @@ const factory = superclass =>
this.intercepted = false
}
get(uri, options = { followRedirect: false }) {
if (!options.followRedirect) {
options.followRedirect = false
}
super.get(uri, options)
return this
}
intercept(setup) {
super.intercept(setup)
this.intercepted = true