mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-11-04 08:56:36 +07:00 
			
		
		
		
	Add support for unstable versions
This commit is contained in:
		@ -3,7 +3,7 @@ import * as extensions from '../src/extensions';
 | 
			
		||||
describe('Extension tests', () => {
 | 
			
		||||
  it('checking addExtensionOnWindows', async () => {
 | 
			
		||||
    let win32: string = await extensions.addExtension(
 | 
			
		||||
      'xdebug, pcov, phalcon4, ast-beta, grpc-1.2.3',
 | 
			
		||||
      'xdebug, pcov, phalcon4, ast-beta, grpc-1.2.3, inotify-1.2.3alpha2',
 | 
			
		||||
      '7.4',
 | 
			
		||||
      'win32'
 | 
			
		||||
    );
 | 
			
		||||
@ -12,6 +12,7 @@ describe('Extension tests', () => {
 | 
			
		||||
    expect(win32).toContain('phalcon.ps1 phalcon4');
 | 
			
		||||
    expect(win32).toContain('Add-Extension ast beta');
 | 
			
		||||
    expect(win32).toContain('Add-Extension grpc stable 1.2.3');
 | 
			
		||||
    expect(win32).toContain('Add-Extension inotify alpha 1.2.3');
 | 
			
		||||
 | 
			
		||||
    win32 = await extensions.addExtension(
 | 
			
		||||
      'phalcon3, does_not_exist',
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user