|
84 | 84 | </pre>[... even more stuff...]</body></html>`
|
85 | 85 | }
|
86 | 86 | const missingURL = 'https://wingit.blob.core.windows.net/x86-64/curl-8.1.2-1-x86_64.pkg.tar.xz'
|
| 87 | +const missingAarch64URL = 'https://wingit.blob.core.windows.net/aarch64/mingw-w64-clang-aarch64-curl-8.1.2-1-any.pkg.tar.xz' |
87 | 88 | const missingMinTTYURL = 'https://wingit.blob.core.windows.net/i686/mintty-1~3.6.5-1-i686.pkg.tar.xz'
|
88 | 89 | const bogus32BitMSYS2RuntimeURL = 'https://wingit.blob.core.windows.net/i686/msys2-runtime-3.4.9-1-i686.pkg.tar.xz'
|
89 | 90 | const bogus64BitMSYS2RuntimeURL = 'https://wingit.blob.core.windows.net/x86-64/msys2-runtime-3.3-3.3.7-1-x86_64.pkg.tar.xz'
|
90 | 91 | const missingOpenSSHURL = 'https://wingit.blob.core.windows.net/i686/openssh-9.5p1-1-i686.pkg.tar.xz'
|
91 | 92 | const missingBashURL = 'https://wingit.blob.core.windows.net/x86-64/bash-5.2.020-1-x86_64.pkg.tar.xz'
|
92 | 93 | const mockDoesURLReturn404 = jest.fn(url => [
|
93 |
| - missingURL, missingMinTTYURL, bogus32BitMSYS2RuntimeURL, bogus64BitMSYS2RuntimeURL, missingOpenSSHURL, missingBashURL |
| 94 | + missingURL, |
| 95 | + missingAarch64URL, |
| 96 | + missingMinTTYURL, |
| 97 | + bogus32BitMSYS2RuntimeURL, |
| 98 | + bogus64BitMSYS2RuntimeURL, |
| 99 | + missingOpenSSHURL, |
| 100 | + missingBashURL |
94 | 101 | ].includes(url))
|
95 | 102 | jest.mock('../GitForWindowsHelper/https-request', () => {
|
96 | 103 | return {
|
@@ -207,7 +214,7 @@ http://www.gnutls.org/news.html#2023-02-10`
|
207 | 214 | })
|
208 | 215 |
|
209 | 216 | test('getMissingDeployments()', async () => {
|
210 |
| - expect(await getMissingDeployments('curl', '8.1.2')).toEqual([missingURL]) |
| 217 | + expect(await getMissingDeployments('curl', '8.1.2')).toEqual([missingURL, missingAarch64URL]) |
211 | 218 | expect(await getMissingDeployments('mintty', '3.6.5')).toEqual([missingMinTTYURL])
|
212 | 219 | expect(await getMissingDeployments('msys2-runtime', '3.4.9')).toEqual([])
|
213 | 220 | expect(await getMissingDeployments('msys2-runtime-3.3', '3.3.7')).toEqual([])
|
|
0 commit comments