mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-30 21:43:37 +00:00 
			
		
		
		
	feat: updated test for sparse-checkout
This commit is contained in:
		
							parent
							
								
									5bd25a5859
								
							
						
					
					
						commit
						d963058cca
					
				| @ -727,6 +727,7 @@ async function setup(testName: string): Promise<void> { | ||||
|     branchDelete: jest.fn(), | ||||
|     branchExists: jest.fn(), | ||||
|     branchList: jest.fn(), | ||||
|     sparseCheckout: jest.fn(), | ||||
|     checkout: jest.fn(), | ||||
|     checkoutDetach: jest.fn(), | ||||
|     config: jest.fn( | ||||
| @ -800,6 +801,7 @@ async function setup(testName: string): Promise<void> { | ||||
|     authToken: 'some auth token', | ||||
|     clean: true, | ||||
|     commit: '', | ||||
|     sparseCheckout: [], | ||||
|     fetchDepth: 1, | ||||
|     lfs: false, | ||||
|     submodules: false, | ||||
|  | ||||
| @ -462,6 +462,7 @@ async function setup(testName: string): Promise<void> { | ||||
|     branchList: jest.fn(async () => { | ||||
|       return [] | ||||
|     }), | ||||
|     sparseCheckout: jest.fn(), | ||||
|     checkout: jest.fn(), | ||||
|     checkoutDetach: jest.fn(), | ||||
|     config: jest.fn(), | ||||
|  | ||||
| @ -79,6 +79,7 @@ describe('input-helper tests', () => { | ||||
|     expect(settings.clean).toBe(true) | ||||
|     expect(settings.commit).toBeTruthy() | ||||
|     expect(settings.commit).toBe('1234567890123456789012345678901234567890') | ||||
|     expect(settings.sparseCheckout).toBe(undefined) | ||||
|     expect(settings.fetchDepth).toBe(1) | ||||
|     expect(settings.lfs).toBe(false) | ||||
|     expect(settings.ref).toBe('refs/heads/some-ref') | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user