mirror of
https://github.com/actions/setup-node
synced 2025-04-18 22:23:11 +00:00
add test
This commit is contained in:
parent
d1f29d3cd9
commit
b1ef2feb1b
@ -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…
Reference in New Issue
Block a user