mirror of
https://github.com/actions/setup-java.git
synced 2026-06-30 09:08:12 +00:00
Compare commits
2 Commits
f41fbe6974
...
ec37390610
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec37390610 | ||
|
|
5321a4dff0 |
@ -420,7 +420,7 @@ describe('findPackageForDownload', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('version list is empty', async () => {
|
it('version list is empty', async () => {
|
||||||
let spyHttpClient = jest.spyOn(HttpClient.prototype, 'getJson');
|
const spyHttpClient = jest.spyOn(HttpClient.prototype, 'getJson');
|
||||||
|
|
||||||
spyHttpClient.mockImplementation((requestUrl, additionalHeaders) => {
|
spyHttpClient.mockImplementation((requestUrl, additionalHeaders) => {
|
||||||
if (requestUrl.startsWith('https://api.adoptium.net/')) {
|
if (requestUrl.startsWith('https://api.adoptium.net/')) {
|
||||||
|
|||||||
@ -59,7 +59,7 @@ export class AdoptDistribution extends JavaBase {
|
|||||||
this.temurinDistribution != null
|
this.temurinDistribution != null
|
||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
let result = await this.temurinDistribution.findPackageForDownload(
|
const result = await this.temurinDistribution.findPackageForDownload(
|
||||||
version
|
version
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user