1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-13 22:44:09 +02:00

final test commit

This commit is contained in:
mahabaleshwars 2024-09-25 14:32:22 +05:30
parent da830ea0e9
commit d148396753
3 changed files with 72 additions and 78 deletions

View file

@ -9,7 +9,25 @@ import * as tc from '@actions/tool-cache';
jest.mock('@actions/http-client');
jest.mock('@actions/tool-cache');
const mockManifest = [{version: '3.12.0'}];
const mockManifest = [
{
version: '3.9.0',
stable: true,
release_url: 'https://example.com/release-url',
files: [
{
filename: 'python-3.9.0-macosx10.9.pkg',
arch: 'x64',
platform: 'darwin',
download_url: 'https://example.com/download-url'
}
]
}
];
beforeEach(() => {
jest.resetAllMocks();
});
describe('getManifest', () => {
it('should return manifest from repo', async () => {