Uncomment slow test

This commit is contained in:
Zachary Eisinger 2019-12-18 08:04:24 -08:00
parent 60e54bffae
commit 8a5bbb0084

View File

@ -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;