mirror of
https://github.com/actions/setup-node.git
synced 2025-09-16 19:33:59 +08:00
test case update
This commit is contained in:
@@ -359,7 +359,7 @@ describe('main tests', () => {
|
|||||||
const logSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); // Mock the log function
|
const logSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); // Mock the log function
|
||||||
|
|
||||||
// Act & Assert
|
// Act & Assert
|
||||||
expect(() => validateMirrorURL(inputs['mirror-url'])).toThrowError(
|
expect(() => validateMirrorURL(inputs['mirror-url'])).toThrow(
|
||||||
'Mirror URL is empty. Please provide a valid mirror URL.'
|
'Mirror URL is empty. Please provide a valid mirror URL.'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user