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
Remove hard dependency from installer
nikolai-laevskii committed Sep 8, 2023
commit fd2f9a08fea252b95e5c20b851a72f2716f086d4
18 changes: 9 additions & 9 deletions __tests__/installer.test.ts
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ describe('installer tests', () => {
});

const dotnetInstaller = new installer.DotnetCoreInstaller(
inputVersion,
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(),
inputQuality
);
await expect(dotnetInstaller.installDotnet()).rejects.toThrow(
@@ -73,7 +73,7 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion);

const dotnetInstaller = new installer.DotnetCoreInstaller(
inputVersion,
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(),
inputQuality
);
const installedVersion = await dotnetInstaller.installDotnet();
@@ -96,7 +96,7 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion);

const dotnetInstaller = new installer.DotnetCoreInstaller(
inputVersion,
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(),
inputQuality
);

@@ -133,7 +133,7 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion);

const dotnetInstaller = new installer.DotnetCoreInstaller(
inputVersion,
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(),
inputQuality
);

@@ -159,7 +159,7 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion);

const dotnetInstaller = new installer.DotnetCoreInstaller(
inputVersion,
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(),
inputQuality
);

@@ -186,7 +186,7 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion);

const dotnetInstaller = new installer.DotnetCoreInstaller(
inputVersion,
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(),
inputQuality
);

@@ -226,7 +226,7 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion);

const dotnetInstaller = new installer.DotnetCoreInstaller(
inputVersion,
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(),
inputQuality
);

@@ -267,7 +267,7 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion);

const dotnetInstaller = new installer.DotnetCoreInstaller(
inputVersion,
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(),
inputQuality
);

@@ -305,7 +305,7 @@ describe('installer tests', () => {
maxSatisfyingSpy.mockImplementation(() => inputVersion);

const dotnetInstaller = new installer.DotnetCoreInstaller(
inputVersion,
await (new installer.DotnetVersionResolver(inputVersion)).createDotnetVersion(),
inputQuality
);

Loading