mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
Changed unit test download urls
This commit is contained in:
parent
4dc2ed4b2a
commit
6e017cde56
1 changed files with 4 additions and 2 deletions
|
@ -177,7 +177,8 @@ describe('getDownloadFileName', () => {
|
|||
it('should return the correct path on Windows', () => {
|
||||
if (IS_WINDOWS) {
|
||||
process.env['RUNNER_TEMP'] = tempDir;
|
||||
const downloadUrl = 'https://example.com/file.zip';
|
||||
const downloadUrl =
|
||||
'https://github.com/actions/sometool/releases/tag/1.2.3-20200402.6/sometool-1.2.3-win32-x64.zip';
|
||||
const expectedPath = path.join(
|
||||
process.env.RUNNER_TEMP,
|
||||
path.basename(downloadUrl)
|
||||
|
@ -188,7 +189,8 @@ describe('getDownloadFileName', () => {
|
|||
|
||||
it('should return undefined on non-Windows', () => {
|
||||
if (!IS_WINDOWS) {
|
||||
const downloadUrl = 'https://example.com/file.tar.gz';
|
||||
const downloadUrl =
|
||||
'https://github.com/actions/sometool/releases/tag/1.2.3-20200402.6/sometool-1.2.3-linux-x64.tar.gz';
|
||||
expect(getDownloadFileName(downloadUrl)).toBeUndefined();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue