mirror of
https://github.com/actions/setup-node.git
synced 2025-06-29 14:13:49 +00:00
check failures fix
This commit is contained in:
parent
1b0ef2d227
commit
07b84a2324
6 changed files with 4 additions and 8 deletions
|
@ -670,7 +670,6 @@ describe('NightlyNodejs', () => {
|
|||
);
|
||||
});
|
||||
|
||||
const core = require('@actions/core'); // Mock core
|
||||
jest.spyOn(core, 'info').mockImplementation(() => {}); // Mock core.info function
|
||||
|
||||
it('logs mirror URL when provided', async () => {
|
||||
|
|
|
@ -560,7 +560,7 @@ describe('setup-node', () => {
|
|||
const infoSpy = jest.spyOn(core, 'info').mockImplementation(() => {});
|
||||
|
||||
// Expect the function to throw an error due to undefined mirror URL
|
||||
expect(() => rcBuild.getDistributionMirrorUrl()).toThrowError(
|
||||
expect(() => rcBuild.getDistributionMirrorUrl()).toThrow(
|
||||
'Mirror URL is undefined. Please provide a valid mirror URL.'
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue