Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install runtime only #476

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fornat
  • Loading branch information
nikolai-laevskii committed Sep 8, 2023
commit 174ee99b90e44610912fa9d1128a777312099c02
36 changes: 27 additions & 9 deletions __tests__/installer.test.ts
Original file line number Diff line number Diff line change
@@ -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
);