diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts index 6cf6cdc..49666e0 100644 --- a/__tests__/installer.test.ts +++ b/__tests__/installer.test.ts @@ -51,7 +51,9 @@ describe('installer tests', () => { }); const dotnetInstaller = new installer.DotnetCoreInstaller( - await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), + await new installer.DotnetVersionResolver( + inputVersion + ).createDotnetVersion(), inputQuality ); await expect(dotnetInstaller.installDotnet()).rejects.toThrow( @@ -73,7 +75,9 @@ describe('installer tests', () => { maxSatisfyingSpy.mockImplementation(() => inputVersion); const dotnetInstaller = new installer.DotnetCoreInstaller( - await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), + await new installer.DotnetVersionResolver( + inputVersion + ).createDotnetVersion(), inputQuality ); const installedVersion = await dotnetInstaller.installDotnet(); @@ -96,7 +100,9 @@ describe('installer tests', () => { maxSatisfyingSpy.mockImplementation(() => inputVersion); const dotnetInstaller = new installer.DotnetCoreInstaller( - await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), + await new installer.DotnetVersionResolver( + inputVersion + ).createDotnetVersion(), inputQuality ); @@ -133,7 +139,9 @@ describe('installer tests', () => { maxSatisfyingSpy.mockImplementation(() => inputVersion); const dotnetInstaller = new installer.DotnetCoreInstaller( - await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), + await new installer.DotnetVersionResolver( + inputVersion + ).createDotnetVersion(), inputQuality ); @@ -159,7 +167,9 @@ describe('installer tests', () => { maxSatisfyingSpy.mockImplementation(() => inputVersion); const dotnetInstaller = new installer.DotnetCoreInstaller( - await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), + await new installer.DotnetVersionResolver( + inputVersion + ).createDotnetVersion(), inputQuality ); @@ -186,7 +196,9 @@ describe('installer tests', () => { maxSatisfyingSpy.mockImplementation(() => inputVersion); const dotnetInstaller = new installer.DotnetCoreInstaller( - await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), + await new installer.DotnetVersionResolver( + inputVersion + ).createDotnetVersion(), inputQuality ); @@ -226,7 +238,9 @@ describe('installer tests', () => { maxSatisfyingSpy.mockImplementation(() => inputVersion); const dotnetInstaller = new installer.DotnetCoreInstaller( - await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), + await new installer.DotnetVersionResolver( + inputVersion + ).createDotnetVersion(), inputQuality ); @@ -267,7 +281,9 @@ describe('installer tests', () => { maxSatisfyingSpy.mockImplementation(() => inputVersion); const dotnetInstaller = new installer.DotnetCoreInstaller( - await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), + await new installer.DotnetVersionResolver( + inputVersion + ).createDotnetVersion(), inputQuality ); @@ -305,7 +321,9 @@ describe('installer tests', () => { maxSatisfyingSpy.mockImplementation(() => inputVersion); const dotnetInstaller = new installer.DotnetCoreInstaller( - await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), + await new installer.DotnetVersionResolver( + inputVersion + ).createDotnetVersion(), inputQuality );