diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts index dfe122d..51d585c 100644 --- a/__tests__/installer.test.ts +++ b/__tests__/installer.test.ts @@ -29,18 +29,18 @@ describe('installer tests', () => { } }, 100000); - // it('Acquires version of dotnet if no matching version is installed', async () => { - // console.log(process.env.DOTNET_INSTALL_DIR); - // await getDotnet('3.1.100'); - // const dotnetDir = path.join(toolDir, 'dncs', '3.1.100', os.arch()); + it('Acquires version of dotnet if no matching version is installed', async () => { + console.log(process.env.DOTNET_INSTALL_DIR); + await getDotnet('3.1.100'); + const dotnetDir = path.join(toolDir, 'dncs', '3.1.100', os.arch()); - // expect(fs.existsSync(`${dotnetDir}.complete`)).toBe(true); - // if (IS_WINDOWS) { - // expect(fs.existsSync(path.join(dotnetDir, 'dotnet.exe'))).toBe(true); - // } else { - // expect(fs.existsSync(path.join(dotnetDir, 'dotnet'))).toBe(true); - // } - // }, 100000); + expect(fs.existsSync(`${dotnetDir}.complete`)).toBe(true); + if (IS_WINDOWS) { + expect(fs.existsSync(path.join(dotnetDir, 'dotnet.exe'))).toBe(true); + } else { + expect(fs.existsSync(path.join(dotnetDir, 'dotnet'))).toBe(true); + } + }, 100000); it('Throws if no location contains correct dotnet version', async () => { let thrown = false;