@@ -104,21 +104,21 @@ describe('BuildParameters', () => {
104104 } ) ;
105105
106106 test . each `
107- targetPlatform | expectedExtension | androidExportType | linux64FileExtension
108- ${ Platform . types . Android } | ${ '.apk' } | ${ 'androidPackage' } | ${ 'n/a' }
109- ${ Platform . types . Android } | ${ '.aab' } | ${ 'androidAppBundle' } | ${ 'n/a' }
110- ${ Platform . types . Android } | ${ '' } | ${ 'androidStudioProject' } | ${ 'n/a' }
111- ${ Platform . types . StandaloneWindows } | ${ '.exe' } | ${ 'n/a' } | ${ 'n/a' }
112- ${ Platform . types . StandaloneWindows64 } | ${ '.exe' } | ${ 'n/a' } | ${ 'n/a' }
113- ${ Platform . types . StandaloneLinux64 } | ${ '' } | ${ 'n/a' } | ${ '' }
114- ${ Platform . types . StandaloneLinux64 } | ${ '.x86_64' } | ${ 'n/a' } | ${ '.x86_64' }
107+ targetPlatform | expectedExtension | androidExportType | linux64RemoveExecutableExtension
108+ ${ Platform . types . Android } | ${ '.apk' } | ${ 'androidPackage' } | ${ false }
109+ ${ Platform . types . Android } | ${ '.aab' } | ${ 'androidAppBundle' } | ${ true }
110+ ${ Platform . types . Android } | ${ '' } | ${ 'androidStudioProject' } | ${ false }
111+ ${ Platform . types . StandaloneWindows } | ${ '.exe' } | ${ 'n/a' } | ${ true }
112+ ${ Platform . types . StandaloneWindows64 } | ${ '.exe' } | ${ 'n/a' } | ${ false }
113+ ${ Platform . types . StandaloneLinux64 } | ${ '' } | ${ 'n/a' } | ${ true }
114+ ${ Platform . types . StandaloneLinux64 } | ${ '.x86_64' } | ${ 'n/a' } | ${ false }
115115 ` (
116- 'appends $expectedExtension for $targetPlatform with androidExportType $androidExportType and linux64FileExtension $linux64FileExtension ' ,
117- async ( { targetPlatform, expectedExtension, androidExportType, linux64FileExtension } ) => {
116+ 'appends $expectedExtension for $targetPlatform with androidExportType $androidExportType and linux64RemoveExecutableExtension $linux64RemoveExecutableExtension ' ,
117+ async ( { targetPlatform, expectedExtension, androidExportType, linux64RemoveExecutableExtension } ) => {
118118 jest . spyOn ( Input , 'targetPlatform' , 'get' ) . mockReturnValue ( targetPlatform ) ;
119119 jest . spyOn ( Input , 'buildName' , 'get' ) . mockReturnValue ( targetPlatform ) ;
120120 jest . spyOn ( Input , 'androidExportType' , 'get' ) . mockReturnValue ( androidExportType ) ;
121- jest . spyOn ( Input , 'linux64FileExtension ' , 'get' ) . mockReturnValue ( linux64FileExtension ) ;
121+ jest . spyOn ( Input , 'linux64RemoveExecutableExtension ' , 'get' ) . mockReturnValue ( linux64RemoveExecutableExtension ) ;
122122 await expect ( BuildParameters . create ( ) ) . resolves . toEqual (
123123 expect . objectContaining ( { buildFile : `${ targetPlatform } ${ expectedExtension } ` } ) ,
124124 ) ;
0 commit comments