mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 12:03:34 +00:00 
			
		
		
		
	fixing main tests
This commit is contained in:
		
							parent
							
								
									2723204c59
								
							
						
					
					
						commit
						5af9d8577e
					
				
							
								
								
									
										1
									
								
								.github/workflows/build-test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/build-test.yml
									
									
									
									
										vendored
									
									
								
							@ -15,6 +15,7 @@ jobs:
 | 
				
			|||||||
  build:
 | 
					  build:
 | 
				
			||||||
    runs-on: ${{ matrix.os }}
 | 
					    runs-on: ${{ matrix.os }}
 | 
				
			||||||
    strategy:
 | 
					    strategy:
 | 
				
			||||||
 | 
					      fail-fast: false
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        os: [ubuntu-latest, windows-latest, macos-latest]
 | 
					        os: [ubuntu-latest, windows-latest, macos-latest]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
 | 
				
			|||||||
@ -178,7 +178,7 @@ describe('main tests', () => {
 | 
				
			|||||||
      expect(infoSpy).toHaveBeenCalledWith(
 | 
					      expect(infoSpy).toHaveBeenCalledWith(
 | 
				
			||||||
        `Resolved ${versionFile} as ${expectedVersionSpec}`
 | 
					        `Resolved ${versionFile} as ${expectedVersionSpec}`
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
    });
 | 
					    }, 10000);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    it('reads package.json as node-version-file if provided', async () => {
 | 
					    it('reads package.json as node-version-file if provided', async () => {
 | 
				
			||||||
      // Arrange
 | 
					      // Arrange
 | 
				
			||||||
@ -205,7 +205,7 @@ describe('main tests', () => {
 | 
				
			|||||||
      expect(infoSpy).toHaveBeenCalledWith(
 | 
					      expect(infoSpy).toHaveBeenCalledWith(
 | 
				
			||||||
        `Resolved ${versionFile} as ${expectedVersionSpec}`
 | 
					        `Resolved ${versionFile} as ${expectedVersionSpec}`
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
    });
 | 
					    }, 10000);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    it('both node-version-file and node-version are provided', async () => {
 | 
					    it('both node-version-file and node-version are provided', async () => {
 | 
				
			||||||
      inputs['node-version'] = '12';
 | 
					      inputs['node-version'] = '12';
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user