mirror of
https://github.com/actions/setup-node.git
synced 2025-04-23 20:10:48 +00:00
fix test?
This commit is contained in:
parent
a9a3421367
commit
aa716b5d28
1 changed files with 3 additions and 1 deletions
|
@ -403,10 +403,12 @@ describe('setup-node', () => {
|
||||||
inputs['node-version'] = '12';
|
inputs['node-version'] = '12';
|
||||||
inputs['corepack'] = 'true';
|
inputs['corepack'] = 'true';
|
||||||
|
|
||||||
|
const toolPath = path.normalize('/cache/node/12.16.1/x64');
|
||||||
|
findSpy.mockReturnValue(toolPath);
|
||||||
await main.run();
|
await main.run();
|
||||||
|
|
||||||
// It seems to call it with the absolute path to corepack, so we easily use `toHaveBeenCalledWith`
|
// It seems to call it with the absolute path to corepack, so we easily use `toHaveBeenCalledWith`
|
||||||
expect(cnSpy.mock.calls[2][0]).toContain('corepack enable');
|
expect(cnSpy.mock.calls[3][0]).toContain('corepack enable');
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('check-latest flag', () => {
|
describe('check-latest flag', () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue