Convert vpre routes to include_prereleases param in [bower chocolatey clojars packagist powershellgallery pub resharper] (#4436)
* Convert vpre routes to include_prereleases param * add .expectRedirect() helper * test redirects on SVG endpoint
This commit is contained in:
@@ -51,6 +51,10 @@ const factory = superclass =>
|
||||
})
|
||||
}
|
||||
|
||||
expectRedirect(location) {
|
||||
return this.expectStatus(301).expectHeader('Location', location)
|
||||
}
|
||||
|
||||
static _expectField(json, name, expected) {
|
||||
if (typeof expected === 'undefined') return
|
||||
if (typeof expected === 'string' || typeof expected === 'number') {
|
||||
|
||||
Reference in New Issue
Block a user