mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-11-04 07:47:14 +00:00 
			
		
		
		
	Add tests
This commit is contained in:
		
							
								
								
									
										21
									
								
								__tests__/__snapshots__/authutil.test.ts.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								__tests__/__snapshots__/authutil.test.ts.snap
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
 | 
			
		||||
 | 
			
		||||
exports[`installer tests Appends trailing slash to registry 1`] = `
 | 
			
		||||
"//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}
 | 
			
		||||
registry=https://registry.npmjs.org/"
 | 
			
		||||
`;
 | 
			
		||||
 | 
			
		||||
exports[`installer tests Automatically configures GPR scope 1`] = `
 | 
			
		||||
"npm.pkg.github.com/:_authToken=\${NODE_AUTH_TOKEN}
 | 
			
		||||
@owner:registry=npm.pkg.github.com/"
 | 
			
		||||
`;
 | 
			
		||||
 | 
			
		||||
exports[`installer tests Configures scoped npm registries 1`] = `
 | 
			
		||||
"//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}
 | 
			
		||||
@myScope:registry=https://registry.npmjs.org/"
 | 
			
		||||
`;
 | 
			
		||||
 | 
			
		||||
exports[`installer tests Sets up npmrc for npmjs 1`] = `
 | 
			
		||||
"//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}
 | 
			
		||||
registry=https://registry.npmjs.org/"
 | 
			
		||||
`;
 | 
			
		||||
		Reference in New Issue
	
	Block a user