mirror of
https://github.com/actions/setup-node.git
synced 2025-12-15 17:31:39 +08:00
Format code and add try/catch blocks
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user