mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:29:12 +08:00 
			
		
		
		
	Stricter check and cleaner messaging
This commit is contained in:
		@@ -696,7 +696,7 @@ describe('setup-node', () => {
 | 
			
		||||
      );
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    it('fail with unexpected LTS alias (lts/)', async () => {
 | 
			
		||||
    it('fail with unable to parse LTS alias (lts/)', async () => {
 | 
			
		||||
      // arrange
 | 
			
		||||
      inputs['node-version'] = 'lts/';
 | 
			
		||||
 | 
			
		||||
@@ -713,7 +713,7 @@ describe('setup-node', () => {
 | 
			
		||||
        'Getting manifest from actions/node-versions@main'
 | 
			
		||||
      );
 | 
			
		||||
      expect(cnSpy).toHaveBeenCalledWith(
 | 
			
		||||
        `::error::Unexpected LTS alias '' for Node version 'lts/'${osm.EOL}`
 | 
			
		||||
        `::error::Unable to parse LTS alias for Node version 'lts/'${osm.EOL}`
 | 
			
		||||
      );
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user