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