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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user