Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
beeequeue committed Oct 7, 2022
1 parent d1f29d3 commit b1ef2fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions __tests__/installer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,12 @@ describe('setup-node', () => {
expect(execSpy).toHaveBeenCalledWith('corepack', ['enable']);
});

it('enables corepack with arguments if they are passed', async () => {
inputs['corepack'] = 'npm';
await main.run();
expect(execSpy).toHaveBeenCalledWith('corepack', ['enable', 'npm']);
});

describe('check-latest flag', () => {
it('use local version and dont check manifest if check-latest is not specified', async () => {
os.platform = 'linux';
Expand Down

0 comments on commit b1ef2fe

Please sign in to comment.