mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
add mock
This commit is contained in:
parent
bd01c0d9fb
commit
d43033cfcd
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ describe('Finder tests', () => {
|
|||
fs.writeFileSync(`${expPath}.complete`, 'hello');
|
||||
});
|
||||
|
||||
const tcFindSpy: jest.SpyInstance = jest.spyOn(tc, 'find');
|
||||
tcFindSpy.mockImplementationOnce(() => "").mockImplementationOnce(() => expPath);
|
||||
|
||||
await io.mkdirP(pythonDir);
|
||||
await io.rmRF(path.join(toolDir, 'Python', '1.2.3'));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue