mirror of
https://github.com/actions/setup-node.git
synced 2024-12-23 09:29:49 +08:00
Unmock fs.existsSync after tests
This commit is contained in:
parent
e93556ca66
commit
f452812b44
|
@ -72,6 +72,10 @@ describe('run', () => {
|
||||||
getCommandOutputSpy = jest.spyOn(utils, 'getCommandOutput');
|
getCommandOutputSpy = jest.spyOn(utils, 'getCommandOutput');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
existsSpy.mockRestore();
|
||||||
|
});
|
||||||
|
|
||||||
describe('Package manager validation', () => {
|
describe('Package manager validation', () => {
|
||||||
it('Package manager is not provided, skip caching', async () => {
|
it('Package manager is not provided, skip caching', async () => {
|
||||||
inputs['cache'] = '';
|
inputs['cache'] = '';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user