3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-25 11:39:32 +01:00

Unmock fs.existsSync after tests

This commit is contained in:
Jacob Gillespie 2021-07-15 12:40:08 +01:00
parent e93556ca66
commit f452812b44
No known key found for this signature in database
GPG key ID: 52D71192EF3DBDD9

View file

@ -72,6 +72,10 @@ describe('run', () => {
getCommandOutputSpy = jest.spyOn(utils, 'getCommandOutput');
});
afterEach(() => {
existsSpy.mockRestore();
});
describe('Package manager validation', () => {
it('Package manager is not provided, skip caching', async () => {
inputs['cache'] = '';