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); fs.writeFileSync(globalJsonPath, jsonContents);
} }
const version = '3.1' const version = '3.1';
const installer = new dotnetInstaller.DotnetCoreInstaller(version) const installer = new dotnetInstaller.DotnetCoreInstaller(version);
const patchVersion = await installer.resolveVersion(new dotnetInstaller.DotNetVersionInfo(version)) const patchVersion = await installer.resolveVersion(
new dotnetInstaller.DotNetVersionInfo(version)
);
await setup.run(); await setup.run();
expect(fs.existsSync(path.join(toolDir, 'sdk', patchVersion))).toBe(true); expect(fs.existsSync(path.join(toolDir, 'sdk', patchVersion))).toBe(true);