From 6e017cde5642752138eec818796d09e622d3209c Mon Sep 17 00:00:00 2001 From: Priyagupta108 Date: Wed, 31 Jul 2024 10:02:42 +0530 Subject: [PATCH] Changed unit test download urls --- __tests__/utils.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/__tests__/utils.test.ts b/__tests__/utils.test.ts index 8eac6e5e..c2c6bca5 100644 --- a/__tests__/utils.test.ts +++ b/__tests__/utils.test.ts @@ -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(); } });