@@ -13,7 +13,7 @@ import {
1313
1414test ( 'detectArchFromFileName recognises common Windows architectures' ,  ( )  =>  { 
1515  assert . equal ( detectArchFromFileName ( 'app-setup-x64.exe' ) ,  'x64' ) ; 
16-   assert . equal ( detectArchFromFileName ( 'app-setup-ia32 .exe' ) ,  'ia32' ) ; 
16+   assert . equal ( detectArchFromFileName ( 'app-setup-win32 .exe' ) ,  'ia32' ) ; 
1717  assert . equal ( detectArchFromFileName ( 'APP-X86.msi' ) ,  'ia32' ) ; 
1818  assert . equal ( detectArchFromFileName ( 'build-aarch64.zip' ) ,  'arm64' ) ; 
1919  assert . equal ( detectArchFromFileName ( 'installer-armhf.tar.gz' ) ,  'armv7l' ) ; 
@@ -50,7 +50,7 @@ const createUpdateInfo = (overrides: Partial<UpdateDownloadedEvent>): UpdateDown
5050test ( 'extractCandidateNamesFromUpdateInfo aggregates filenames from multiple sources' ,  ( )  =>  { 
5151  const  info  =  createUpdateInfo ( { 
5252    files : [ 
53-       {  url : 'https://example.com/app-ia32 .exe'  }  as  any , 
53+       {  url : 'https://example.com/app-win32 .exe'  }  as  any , 
5454      {  url : 'https://example.com/app-x64.exe?raw=1'  }  as  any , 
5555    ] , 
5656    path : '/tmp/legacy/App-x64.exe' , 
@@ -59,11 +59,11 @@ test('extractCandidateNamesFromUpdateInfo aggregates filenames from multiple sou
5959
6060  const  candidates  =  extractCandidateNamesFromUpdateInfo ( info ,  '.exe' ) ; 
6161  const  sorted  =  [ ...candidates ] . sort ( ) ; 
62-   assert . deepEqual ( sorted ,  [ 'App-x64.exe' ,  'app-ia32 .exe' ,  'app-x64.exe' ] ) ; 
62+   assert . deepEqual ( sorted ,  [ 'App-x64.exe' ,  'app-win32 .exe' ,  'app-x64.exe' ] ) ; 
6363} ) ; 
6464
6565test ( 'filterNamesByArch prefers matches but falls back when none exist' ,  ( )  =>  { 
66-   const  names  =  [ 'app-ia32 .exe' ,  'app-x64.exe' ] ; 
66+   const  names  =  [ 'app-win32 .exe' ,  'app-x64.exe' ] ; 
6767  assert . deepEqual ( filterNamesByArch ( names ,  'x64' ) ,  [ 'app-x64.exe' ] ) ; 
6868  assert . deepEqual ( filterNamesByArch ( names ,  'arm64' ) ,  names ) ; 
6969  assert . deepEqual ( filterNamesByArch ( names ,  null ) ,  names ) ; 
@@ -72,7 +72,7 @@ test('filterNamesByArch prefers matches but falls back when none exist', () => {
7272test ( 'determineDownloadedUpdateArch prioritises metadata that matches the downloaded file' ,  ( )  =>  { 
7373  const  info  =  createUpdateInfo ( { 
7474    files : [ 
75-       {  url : 'https://example.com/app-1.2.3-windows-ia32 -setup.exe'  }  as  any , 
75+       {  url : 'https://example.com/app-1.2.3-windows-win32 -setup.exe'  }  as  any , 
7676      {  url : 'https://example.com/app-1.2.3-windows-x64-setup.exe'  }  as  any , 
7777    ] , 
7878    downloadedFile : '/tmp/app-1.2.3-windows-x64-setup.exe' , 
0 commit comments