This commit is contained in:
Nikolai Laevskii 2023-09-08 15:21:35 +02:00
parent fd2f9a08fe
commit 174ee99b90

View File

@ -51,7 +51,9 @@ describe('installer tests', () => {
}); });
const dotnetInstaller = new installer.DotnetCoreInstaller( const dotnetInstaller = new installer.DotnetCoreInstaller(
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), await new installer.DotnetVersionResolver(
inputVersion
).createDotnetVersion(),
inputQuality inputQuality
); );
await expect(dotnetInstaller.installDotnet()).rejects.toThrow( await expect(dotnetInstaller.installDotnet()).rejects.toThrow(
@ -73,7 +75,9 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion); maxSatisfyingSpy.mockImplementation(() => inputVersion);
const dotnetInstaller = new installer.DotnetCoreInstaller( const dotnetInstaller = new installer.DotnetCoreInstaller(
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), await new installer.DotnetVersionResolver(
inputVersion
).createDotnetVersion(),
inputQuality inputQuality
); );
const installedVersion = await dotnetInstaller.installDotnet(); const installedVersion = await dotnetInstaller.installDotnet();
@ -96,7 +100,9 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion); maxSatisfyingSpy.mockImplementation(() => inputVersion);
const dotnetInstaller = new installer.DotnetCoreInstaller( const dotnetInstaller = new installer.DotnetCoreInstaller(
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), await new installer.DotnetVersionResolver(
inputVersion
).createDotnetVersion(),
inputQuality inputQuality
); );
@ -133,7 +139,9 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion); maxSatisfyingSpy.mockImplementation(() => inputVersion);
const dotnetInstaller = new installer.DotnetCoreInstaller( const dotnetInstaller = new installer.DotnetCoreInstaller(
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), await new installer.DotnetVersionResolver(
inputVersion
).createDotnetVersion(),
inputQuality inputQuality
); );
@ -159,7 +167,9 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion); maxSatisfyingSpy.mockImplementation(() => inputVersion);
const dotnetInstaller = new installer.DotnetCoreInstaller( const dotnetInstaller = new installer.DotnetCoreInstaller(
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), await new installer.DotnetVersionResolver(
inputVersion
).createDotnetVersion(),
inputQuality inputQuality
); );
@ -186,7 +196,9 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion); maxSatisfyingSpy.mockImplementation(() => inputVersion);
const dotnetInstaller = new installer.DotnetCoreInstaller( const dotnetInstaller = new installer.DotnetCoreInstaller(
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), await new installer.DotnetVersionResolver(
inputVersion
).createDotnetVersion(),
inputQuality inputQuality
); );
@ -226,7 +238,9 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion); maxSatisfyingSpy.mockImplementation(() => inputVersion);
const dotnetInstaller = new installer.DotnetCoreInstaller( const dotnetInstaller = new installer.DotnetCoreInstaller(
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), await new installer.DotnetVersionResolver(
inputVersion
).createDotnetVersion(),
inputQuality inputQuality
); );
@ -267,7 +281,9 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion); maxSatisfyingSpy.mockImplementation(() => inputVersion);
const dotnetInstaller = new installer.DotnetCoreInstaller( const dotnetInstaller = new installer.DotnetCoreInstaller(
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), await new installer.DotnetVersionResolver(
inputVersion
).createDotnetVersion(),
inputQuality inputQuality
); );
@ -305,7 +321,9 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion); maxSatisfyingSpy.mockImplementation(() => inputVersion);
const dotnetInstaller = new installer.DotnetCoreInstaller( const dotnetInstaller = new installer.DotnetCoreInstaller(
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(), await new installer.DotnetVersionResolver(
inputVersion
).createDotnetVersion(),
inputQuality inputQuality
); );