1
0
Fork 0
mirror of https://github.com/actions/setup-node.git synced 2024-09-19 16:06:43 +00: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
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
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'] = '';