mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
add test
This commit is contained in:
parent
d1f29d3cd9
commit
b1ef2feb1b
1 changed files with 6 additions and 0 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue