mirror of
https://github.com/actions/setup-java.git
synced 2025-09-08 11:37:08 +00:00
Fix tests and licences
This commit is contained in:
parent
bb39e340a4
commit
e987e880f9
18 changed files with 49 additions and 103 deletions
|
@ -8,10 +8,6 @@ import {JavaInstallerOptions} from '../../src/distributions/base-models';
|
|||
|
||||
import os from 'os';
|
||||
|
||||
function mockArchitecture(arch: string): NodeJS.Architecture {
|
||||
return arch as NodeJS.Architecture;
|
||||
}
|
||||
|
||||
import manifestData from '../data/adopt.json';
|
||||
|
||||
describe('getAvailableVersions', () => {
|
||||
|
@ -195,7 +191,7 @@ describe('getAvailableVersions', () => {
|
|||
])(
|
||||
'defaults to os.arch(): %s mapped to distro arch: %s',
|
||||
async (osArch: string, distroArch: string) => {
|
||||
jest.spyOn(os, 'arch').mockReturnValue(mockArchitecture(osArch));
|
||||
jest.spyOn(os, 'arch').mockReturnValue(osArch as ReturnType<typeof os.arch>);
|
||||
|
||||
const installerOptions: JavaInstallerOptions = {
|
||||
version: '17',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue