mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2024-12-24 11:35:48 +00:00
fix format
This commit is contained in:
parent
14e150d2b1
commit
f4215cc0e0
1 changed files with 4 additions and 4 deletions
|
@ -122,14 +122,14 @@ describe('authutil tests', () => {
|
|||
let rc = readRcFile(rcFile);
|
||||
expect(rc['registry']).toBe('https://registry.npmjs.org/');
|
||||
expect(rc['always-auth']).toBe('true');
|
||||
})
|
||||
it('It is already set the NODE_AUTH_TOKEN export it ', async ()=> {
|
||||
process.env.NODE_AUTH_TOKEN='foobar';
|
||||
});
|
||||
it('It is already set the NODE_AUTH_TOKEN export it ', async () => {
|
||||
process.env.NODE_AUTH_TOKEN = 'foobar';
|
||||
await auth.configAuthentication('npm.pkg.github.com', 'false');
|
||||
expect(fs.statSync(rcFile)).toBeDefined();
|
||||
let rc = readRcFile(rcFile);
|
||||
expect(rc['@ownername:registry']).toBe('npm.pkg.github.com/');
|
||||
expect(rc['always-auth']).toBe('false');
|
||||
expect(process.env.NODE_AUTH_TOKEN).toEqual('foobar');
|
||||
})
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue