Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
zodman committed Oct 21, 2020
1 parent 14e150d commit f4215cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __tests__/authutil.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
})
});
});

0 comments on commit f4215cc

Please # to comment.