mirror of
				https://kkgithub.com/actions/setup-node.git
				synced 2025-11-04 04:31:55 +08:00 
			
		
		
		
	fix format
This commit is contained in:
		@ -122,7 +122,7 @@ describe('authutil tests', () => {
 | 
				
			|||||||
    let rc = readRcFile(rcFile);
 | 
					    let rc = readRcFile(rcFile);
 | 
				
			||||||
    expect(rc['registry']).toBe('https://registry.npmjs.org/');
 | 
					    expect(rc['registry']).toBe('https://registry.npmjs.org/');
 | 
				
			||||||
    expect(rc['always-auth']).toBe('true');
 | 
					    expect(rc['always-auth']).toBe('true');
 | 
				
			||||||
  })
 | 
					  });
 | 
				
			||||||
  it('It is already set the NODE_AUTH_TOKEN export it ', async () => {
 | 
					  it('It is already set the NODE_AUTH_TOKEN export it ', async () => {
 | 
				
			||||||
    process.env.NODE_AUTH_TOKEN = 'foobar';
 | 
					    process.env.NODE_AUTH_TOKEN = 'foobar';
 | 
				
			||||||
    await auth.configAuthentication('npm.pkg.github.com', 'false');
 | 
					    await auth.configAuthentication('npm.pkg.github.com', 'false');
 | 
				
			||||||
@ -131,5 +131,5 @@ describe('authutil tests', () => {
 | 
				
			|||||||
    expect(rc['@ownername:registry']).toBe('npm.pkg.github.com/');
 | 
					    expect(rc['@ownername:registry']).toBe('npm.pkg.github.com/');
 | 
				
			||||||
    expect(rc['always-auth']).toBe('false');
 | 
					    expect(rc['always-auth']).toBe('false');
 | 
				
			||||||
    expect(process.env.NODE_AUTH_TOKEN).toEqual('foobar');
 | 
					    expect(process.env.NODE_AUTH_TOKEN).toEqual('foobar');
 | 
				
			||||||
  })
 | 
					  });
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user