mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-10 06:01:11 +00:00
Format code and add try/catch blocks
This commit is contained in:
parent
6ba41b7436
commit
6599117e55
3 changed files with 42 additions and 17 deletions
|
@ -252,8 +252,16 @@ describe('setup-node', () => {
|
|||
let expPath = path.join(toolPath, 'bin');
|
||||
|
||||
expect(execExecSpy).toHaveBeenCalledWith('node', ['--version']);
|
||||
expect(execExecSpy).toHaveBeenCalledWith('npm', ['--version'], expect.anything());
|
||||
expect(execExecSpy).toHaveBeenCalledWith('yarn', ['--version'], expect.anything());
|
||||
expect(execExecSpy).toHaveBeenCalledWith(
|
||||
'npm',
|
||||
['--version'],
|
||||
expect.anything()
|
||||
);
|
||||
expect(execExecSpy).toHaveBeenCalledWith(
|
||||
'yarn',
|
||||
['--version'],
|
||||
expect.anything()
|
||||
);
|
||||
|
||||
expect(dlSpy).toHaveBeenCalled();
|
||||
expect(exSpy).toHaveBeenCalled();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue