mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:43:35 +00:00 
			
		
		
		
	add test
This commit is contained in:
		
							parent
							
								
									d1f29d3cd9
								
							
						
					
					
						commit
						b1ef2feb1b
					
				@ -402,6 +402,12 @@ describe('setup-node', () => {
 | 
				
			|||||||
    expect(execSpy).toHaveBeenCalledWith('corepack', ['enable']);
 | 
					    expect(execSpy).toHaveBeenCalledWith('corepack', ['enable']);
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  it('enables corepack with arguments if they are passed', async () => {
 | 
				
			||||||
 | 
					    inputs['corepack'] = 'npm';
 | 
				
			||||||
 | 
					    await main.run();
 | 
				
			||||||
 | 
					    expect(execSpy).toHaveBeenCalledWith('corepack', ['enable', 'npm']);
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  describe('check-latest flag', () => {
 | 
					  describe('check-latest flag', () => {
 | 
				
			||||||
    it('use local version and dont check manifest if check-latest is not specified', async () => {
 | 
					    it('use local version and dont check manifest if check-latest is not specified', async () => {
 | 
				
			||||||
      os.platform = 'linux';
 | 
					      os.platform = 'linux';
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user