Update tests, make sure old behaviour continues to work as expected

This commit is contained in:
Preston Maness 2023-06-12 00:10:33 -05:00 committed by Yarmo Mackenbach
parent be37a25352
commit e2d34723e5

View file

@ -42,7 +42,9 @@ const generateProxyURL = (type, data, opts) => {
queryStrings.push(`${key}=${encodeURIComponent(data[key])}`)
})
return `${opts.proxy.scheme}://${opts.proxy.hostname}/api/2/get/${type}?${queryStrings.join(
const scheme = opts.proxy.scheme ? opts.proxy.scheme : 'https'
return `${scheme}://${opts.proxy.hostname}/api/2/get/${type}?${queryStrings.join(
'&'
)}`
}