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:
chris48s
2019-12-23 20:47:35 +00:00
committed by GitHub
parent 8056706316
commit 1a98b6bc31
19 changed files with 294 additions and 154 deletions

View File

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