mirror of
https://github.com/actions/setup-node.git
synced 2025-06-28 21:53:48 +00:00
replace throw with warn
This commit is contained in:
parent
676975d9aa
commit
b28830cbe2
5 changed files with 17 additions and 9 deletions
|
@ -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.'
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue