mirror of
https://github.com/actions/setup-node.git
synced 2025-04-21 18:39:23 +08: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…
x
Reference in New Issue
Block a user