mirror of
https://github.com/actions/setup-python.git
synced 2026-07-18 14:39:58 +08:00
Update README and dependencies
This commit is contained in:
parent
d451bd8cd1
commit
f8ae54f808
6 changed files with 57912 additions and 52861 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {jest, describe, it, expect, beforeEach} from '@jest/globals';
|
||||
import {jest, describe, it, expect, beforeEach, afterEach} from '@jest/globals';
|
||||
|
||||
class MockHttpClientError extends Error {
|
||||
statusCode: number;
|
||||
|
|
@ -159,7 +159,9 @@ describe('getManifest', () => {
|
|||
const rateLimitError = Object.assign(new Error('API rate limit exceeded'), {
|
||||
httpStatusCode: 403
|
||||
});
|
||||
(tc.getManifestFromRepo as jest.Mock<any>).mockRejectedValue(rateLimitError);
|
||||
(tc.getManifestFromRepo as jest.Mock<any>).mockRejectedValue(
|
||||
rateLimitError
|
||||
);
|
||||
(httpm.HttpClient as jest.Mock<any>).mockImplementation(() => ({
|
||||
getJson: jest.fn(async () => ({result: mockManifest}))
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue