diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts index b5ad51d..8371812 100644 --- a/__tests__/installer.test.ts +++ b/__tests__/installer.test.ts @@ -86,7 +86,6 @@ describe('installer tests', () => { expect(process.env.PATH?.startsWith(toolDir)).toBe(true); }, 600000); //This needs some time to download on "slower" internet connections - it('Acquires architecture-specific version of dotnet if no matching version is installed', async () => { await getDotnet('3.1', 'x86'); var directory = fs @@ -105,7 +104,6 @@ describe('installer tests', () => { expect(process.env.PATH?.startsWith(toolDir)).toBe(true); }, 600000); //This needs some time to download on "slower" internet connections - it('Throws if no location contains correct dotnet version', async () => { let thrown = false; try { @@ -164,8 +162,14 @@ function normalizeFileContents(contents: string): string { .replace(new RegExp('\r', 'g'), '\n'); } -async function getDotnet(version: string, architecture: string = ''): Promise { - const dotnetInstaller = new installer.DotnetCoreInstaller(version, architecture); +async function getDotnet( + version: string, + architecture: string = '' +): Promise { + const dotnetInstaller = new installer.DotnetCoreInstaller( + version, + architecture + ); await dotnetInstaller.installDotnet(); installer.DotnetCoreInstaller.addToPath(); } diff --git a/src/installer.ts b/src/installer.ts index 9efdb10..68996bd 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -79,7 +79,11 @@ export class DotNetVersionInfo { } export class DotnetCoreInstaller { - constructor(version: string, architecture:string = '', includePrerelease: boolean = false) { + constructor( + version: string, + architecture: string = '', + includePrerelease: boolean = false + ) { this.version = version; this.architecture = architecture; this.includePrerelease = includePrerelease;