1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-node synced 2025-06-09 05:22:20 +02:00

replace throw with warn

This commit is contained in:
Sergey Dolin 2022-12-09 12:05:59 +01:00 committed by Sergey Dolin
parent 676975d9aa
commit b28830cbe2
5 changed files with 17 additions and 9 deletions

View file

@ -46,7 +46,8 @@ describe('cache-utils', () => {
isFeatureAvailable.mockImplementation(() => false);
process.env['GITHUB_SERVER_URL'] = 'https://www.test.com';
expect(() => isCacheFeatureAvailable()).toThrowError(
expect(isCacheFeatureAvailable()).toBeFalsy();
expect(warningSpy).toHaveBeenCalledWith(
'Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.'
);
});