mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-10-31 23:36:21 +07:00 
			
		
		
		
	Use EXTENSION_PATH to specify subdirectory in add_extension_from_source
This commit is contained in:
		| @ -267,7 +267,7 @@ describe('Utils tests', () => { | ||||
|         'extension' | ||||
|       ) | ||||
|     ).toContain( | ||||
|       '\nadd_extension_from_source ext https://github.com org-name repo-name . release extension' | ||||
|       '\nadd_extension_from_source ext https://github.com org-name repo-name release extension' | ||||
|     ); | ||||
|     expect( | ||||
|       await utils.parseExtensionSource( | ||||
| @ -275,15 +275,15 @@ describe('Utils tests', () => { | ||||
|         'extension' | ||||
|       ) | ||||
|     ).toContain( | ||||
|       '\nadd_extension_from_source ext https://sub.domain.tld org repo . release extension' | ||||
|       '\nadd_extension_from_source ext https://sub.domain.tld org repo release extension' | ||||
|     ); | ||||
|     expect( | ||||
|       await utils.parseExtensionSource( | ||||
|         'ext-https://sub.domain.XN--tld/org/repo/sub/dir@release', | ||||
|         'ext-https://sub.domain.XN--tld/org/repo@release', | ||||
|         'extension' | ||||
|       ) | ||||
|     ).toContain( | ||||
|       '\nadd_extension_from_source ext https://sub.domain.XN--tld org repo sub/dir release extension' | ||||
|       '\nadd_extension_from_source ext https://sub.domain.XN--tld org repo release extension' | ||||
|     ); | ||||
|   }); | ||||
| }); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shivam Mathur
					Shivam Mathur