mirror of
https://github.com/actions/setup-node.git
synced 2026-02-19 21:14:48 +08:00
updated test cases
This commit is contained in:
@@ -97,7 +97,13 @@ async function getToolVersion(tool: string, options: string[]) {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
export function validateMirrorURL(mirrorURL) {
|
||||
if (mirrorURL === ' ' || mirrorURL.trim() === 'undefined') {
|
||||
throw new Error('Mirror URL is empty. Please provide a valid mirror URL.');
|
||||
} else {
|
||||
return mirrorURL;
|
||||
}
|
||||
}
|
||||
export const unique = () => {
|
||||
const encountered = new Set();
|
||||
return (value: unknown): boolean => {
|
||||
|
||||
Reference in New Issue
Block a user