mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:29:12 +08:00 
			
		
		
		
	chore: run prettier
This commit is contained in:
		@@ -592,7 +592,7 @@ describe('setup-node', () => {
 | 
			
		||||
      inputs['node-version-file'] = 'volta';
 | 
			
		||||
 | 
			
		||||
      existsSpy.mockImplementationOnce(
 | 
			
		||||
          input => input === path.join(__dirname, 'data', versionFile)
 | 
			
		||||
        input => input === path.join(__dirname, 'data', versionFile)
 | 
			
		||||
      );
 | 
			
		||||
      // Act
 | 
			
		||||
      await main.run();
 | 
			
		||||
@@ -601,7 +601,7 @@ describe('setup-node', () => {
 | 
			
		||||
      expect(existsSpy).toHaveBeenCalledTimes(1);
 | 
			
		||||
      expect(existsSpy).toHaveReturnedWith(true);
 | 
			
		||||
      expect(logSpy).toHaveBeenCalledWith(
 | 
			
		||||
          `Resolved ${versionFile} as ${expectedVersionSpec}`
 | 
			
		||||
        `Resolved ${versionFile} as ${expectedVersionSpec}`
 | 
			
		||||
      );
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -95,7 +95,7 @@ function resolveVersionInput(): string {
 | 
			
		||||
      version = JSON.parse(fs.readFileSync(versionFilePath, 'utf8')).volta.node;
 | 
			
		||||
    } else {
 | 
			
		||||
      version = installer.parseNodeVersionFile(
 | 
			
		||||
          fs.readFileSync(versionFilePath, 'utf8')
 | 
			
		||||
        fs.readFileSync(versionFilePath, 'utf8')
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user