mirror of
https://github.com/actions/setup-python.git
synced 2025-04-25 07:52:12 +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', () => {
|
it('should return the correct path on Windows', () => {
|
||||||
if (IS_WINDOWS) {
|
if (IS_WINDOWS) {
|
||||||
process.env['RUNNER_TEMP'] = tempDir;
|
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(
|
const expectedPath = path.join(
|
||||||
process.env.RUNNER_TEMP,
|
process.env.RUNNER_TEMP,
|
||||||
path.basename(downloadUrl)
|
path.basename(downloadUrl)
|
||||||
|
@ -188,7 +189,8 @@ describe('getDownloadFileName', () => {
|
||||||
|
|
||||||
it('should return undefined on non-Windows', () => {
|
it('should return undefined on non-Windows', () => {
|
||||||
if (!IS_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();
|
expect(getDownloadFileName(downloadUrl)).toBeUndefined();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue