mirror of
https://gitea.com/actions/setup-node.git
synced 2025-07-19 01:48:03 +08:00
replace throw with warn
This commit is contained in:

committed by
Sergey Dolin

parent
676975d9aa
commit
b28830cbe2
@@ -728,8 +728,9 @@ describe('setup-node', () => {
|
||||
|
||||
await main.run();
|
||||
|
||||
expect(cnSpy).toHaveBeenCalledWith(
|
||||
`::error::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.${osm.EOL}`
|
||||
expect(warningSpy).toHaveBeenCalledWith(
|
||||
// `::error::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.${osm.EOL}`
|
||||
'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.'
|
||||
);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user