Skip to content
Snippets Groups Projects
Unverified Commit 068d5606 authored by Marcin Mielnicki's avatar Marcin Mielnicki
Browse files

Redirect to a static badge instead of returning status code 500

parent 824d6de4
Loading
...@@ -94,7 +94,7 @@ describe('Redirector', function() { ...@@ -94,7 +94,7 @@ describe('Redirector', function() {
}) })
// https://github.com/badges/shields/issues/4013 // https://github.com/badges/shields/issues/4013
it('should temporarily redirect to a badge with message "inaccesible" when cunstructed redirect URL is invalid (contains invalid characters)', async function() { it('should temporarily redirect to a badge with message "inaccesible" when redirect URL is invalid (contains invalid characters)', async function() {
const { statusCode, headers } = await got( const { statusCode, headers } = await got(
`${baseUrl}/very/old/service/hello\nworld.svg`, `${baseUrl}/very/old/service/hello\nworld.svg`,
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment