@@ -84,13 +84,20 @@ href="20230616162552.879387-1-corinna-cygwin@cygwin.com/">cygwin 3.4.7-1</a></b>
8484</pre>[... even more stuff...]</body></html>`
8585}
8686const 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'
8788const missingMinTTYURL = 'https://wingit.blob.core.windows.net/i686/mintty-1~3.6.5-1-i686.pkg.tar.xz'
8889const bogus32BitMSYS2RuntimeURL = 'https://wingit.blob.core.windows.net/i686/msys2-runtime-3.4.9-1-i686.pkg.tar.xz'
8990const bogus64BitMSYS2RuntimeURL = 'https://wingit.blob.core.windows.net/x86-64/msys2-runtime-3.3-3.3.7-1-x86_64.pkg.tar.xz'
9091const missingOpenSSHURL = 'https://wingit.blob.core.windows.net/i686/openssh-9.5p1-1-i686.pkg.tar.xz'
9192const missingBashURL = 'https://wingit.blob.core.windows.net/x86-64/bash-5.2.020-1-x86_64.pkg.tar.xz'
9293const 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
94101] . includes ( url ) )
95102jest . mock ( '../GitForWindowsHelper/https-request' , ( ) => {
96103 return {
@@ -207,7 +214,7 @@ http://www.gnutls.org/news.html#2023-02-10`
207214} )
208215
209216test ( 'getMissingDeployments()' , async ( ) => {
210- expect ( await getMissingDeployments ( 'curl' , '8.1.2' ) ) . toEqual ( [ missingURL ] )
217+ expect ( await getMissingDeployments ( 'curl' , '8.1.2' ) ) . toEqual ( [ missingURL , missingAarch64URL ] )
211218 expect ( await getMissingDeployments ( 'mintty' , '3.6.5' ) ) . toEqual ( [ missingMinTTYURL ] )
212219 expect ( await getMissingDeployments ( 'msys2-runtime' , '3.4.9' ) ) . toEqual ( [ ] )
213220 expect ( await getMissingDeployments ( 'msys2-runtime-3.3' , '3.3.7' ) ) . toEqual ( [ ] )
0 commit comments