mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 13:29:15 +08:00 
			
		
		
		
	Update NPM dependencies (#1703)
* Update dependencies manually * Format files * Update licenses
This commit is contained in:
		@@ -169,8 +169,9 @@ describe('git-auth-helper tests', () => {
 | 
			
		||||
 | 
			
		||||
    // Mock fs.promises.readFile
 | 
			
		||||
    const realReadFile = fs.promises.readFile
 | 
			
		||||
    jest.spyOn(fs.promises, 'readFile').mockImplementation(
 | 
			
		||||
      async (file: any, options: any): Promise<Buffer> => {
 | 
			
		||||
    jest
 | 
			
		||||
      .spyOn(fs.promises, 'readFile')
 | 
			
		||||
      .mockImplementation(async (file: any, options: any): Promise<Buffer> => {
 | 
			
		||||
        const userKnownHostsPath = path.join(
 | 
			
		||||
          os.homedir(),
 | 
			
		||||
          '.ssh',
 | 
			
		||||
@@ -181,8 +182,7 @@ describe('git-auth-helper tests', () => {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return await realReadFile(file, options)
 | 
			
		||||
      }
 | 
			
		||||
    )
 | 
			
		||||
      })
 | 
			
		||||
 | 
			
		||||
    // Act
 | 
			
		||||
    const authHelper = gitAuthHelper.createAuthHelper(git, settings)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user