Make tests work on macOS and Windows

This commit is contained in:
Fabio Niephaus 2022-11-15 09:26:41 +01:00
parent 46d790322c
commit 43a44e93dd
No known key found for this signature in database
GPG key ID: F21CF5275F31DFD6
3 changed files with 11 additions and 21 deletions

View file

@ -86,12 +86,11 @@ export class OracleDistribution extends JavaBase {
return { url: fileUrl, version: range };
}
private getPlatform(platform: NodeJS.Platform = process.platform): OsVersions {
public getPlatform(platform: NodeJS.Platform = process.platform): OsVersions {
switch (platform) {
case 'darwin':
return 'macos';
case 'win32':
case 'cygwin':
return 'windows';
case 'linux':
return 'linux';