mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
fix tests
This commit is contained in:
parent
0c0e574755
commit
0753db15fe
1 changed files with 4 additions and 1 deletions
|
@ -109,6 +109,9 @@ describe('Finder tests', () => {
|
|||
// process.stderr.write('write:' + line + '\n');
|
||||
});
|
||||
|
||||
const addPathSpy: jest.SpyInstance = jest.spyOn(core, 'addPath');
|
||||
addPathSpy.mockImplementation(() => null);
|
||||
|
||||
const infoSpy: jest.SpyInstance = jest.spyOn(core, 'info');
|
||||
infoSpy.mockImplementation(() => {});
|
||||
|
||||
|
@ -147,7 +150,7 @@ describe('Finder tests', () => {
|
|||
'Version 1.2.3 is available for downloading'
|
||||
);
|
||||
expect(installSpy).toHaveBeenCalled();
|
||||
expect(cnSpy).toHaveBeenCalledWith(`::add-path::${expPath}${os.EOL}`);
|
||||
expect(addPathSpy).toHaveBeenCalledWith(expPath);
|
||||
});
|
||||
|
||||
it('Errors if Python is not installed', async () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue