mirror of
https://github.com/azure/setup-helm.git
synced 2026-12-04 19:21:54 +00:00
Compare commits
1 Commits
main
...
alert-autofix-5
| Author | SHA1 | Date | |
|---|---|---|---|
| acc4ca70ab |
+3
-2
@@ -664,8 +664,9 @@ describe('run.ts', () => {
|
|||||||
stubDownloadChain()
|
stubDownloadChain()
|
||||||
inputs('3.14', '', '', 'https://fallback.tld')
|
inputs('3.14', '', '', 'https://fallback.tld')
|
||||||
vi.spyOn(globalThis, 'fetch').mockImplementation(async (input) => {
|
vi.spyOn(globalThis, 'fetch').mockImplementation(async (input) => {
|
||||||
const url = String(input)
|
const requestUrl = new URL(String(input))
|
||||||
if (url.startsWith(downloadBaseURL)) {
|
const primaryBaseUrl = new URL(downloadBaseURL)
|
||||||
|
if (requestUrl.origin === primaryBaseUrl.origin) {
|
||||||
throw new Error('Primary unavailable')
|
throw new Error('Primary unavailable')
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user