mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-12-06 09:50:56 +00:00
Omit the stable argument for Windows extensions
This commit is contained in:
@@ -7,7 +7,6 @@ describe('Extension tests', () => {
|
||||
${'none'} | ${'7.4'} | ${'Disable-AllShared'}
|
||||
${':intl'} | ${'7.4'} | ${'Disable-Extension intl'}
|
||||
${'ast-beta'} | ${'7.4'} | ${'Add-Extension ast beta'}
|
||||
${'ast-stable'} | ${'7.4'} | ${'Add-Extension ast stable'}
|
||||
${'blackfire'} | ${'7.3'} | ${'Add-Blackfire blackfire'}
|
||||
${'blackfire-1.31.0'} | ${'7.3'} | ${'Add-Blackfire blackfire-1.31.0'}
|
||||
${'grpc-1.2.3'} | ${'7.4'} | ${'Add-Extension grpc stable 1.2.3'}
|
||||
@@ -42,6 +41,14 @@ describe('Extension tests', () => {
|
||||
}
|
||||
);
|
||||
|
||||
it('omits the stable argument from the generated Windows command', async () => {
|
||||
const script = await extensions.addExtensionWindows(
|
||||
'mbstring-stable',
|
||||
'8.4'
|
||||
);
|
||||
expect(script.trim()).toBe('Add-Extension mbstring');
|
||||
});
|
||||
|
||||
it.each`
|
||||
extension | version | output
|
||||
${'none'} | ${'7.4'} | ${'disable_all_shared'}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -180,7 +180,7 @@ export async function addExtensionWindows(
|
||||
add_script += await utils.joins(
|
||||
'\nAdd-Extension',
|
||||
ext_name,
|
||||
ext_version
|
||||
ext_version.replace('stable', '')
|
||||
);
|
||||
break;
|
||||
// match extensions for compiling from source
|
||||
|
||||
Reference in New Issue
Block a user