mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-25 12:53:06 +07:00
Fornat
This commit is contained in:
parent
fd2f9a08fe
commit
174ee99b90
@ -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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user