1
0
mirror of https://github.com/actions/setup-dotnet.git synced 2026-02-18 15:31:20 +01:00
This commit is contained in:
Vladimir Safonkin
2021-08-20 17:13:23 +03:00
parent 5e45b4b591
commit f3822c3b02

View File

@@ -53,9 +53,11 @@ describe('setup-dotnet tests', () => {
fs.writeFileSync(globalJsonPath, jsonContents);
}
const version = '3.1'
const installer = new dotnetInstaller.DotnetCoreInstaller(version)
const patchVersion = await installer.resolveVersion(new dotnetInstaller.DotNetVersionInfo(version))
const version = '3.1';
const installer = new dotnetInstaller.DotnetCoreInstaller(version);
const patchVersion = await installer.resolveVersion(
new dotnetInstaller.DotNetVersionInfo(version)
);
await setup.run();
expect(fs.existsSync(path.join(toolDir, 'sdk', patchVersion))).toBe(true);