From 79f71d92a1b97be1d133cddbe4eb80081c1db9b2 Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Wed, 5 Jun 2019 16:00:53 -0400 Subject: [PATCH] Fix other linux test --- __tests__/installer.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts index 1bf2da17..7476c665 100644 --- a/__tests__/installer.test.ts +++ b/__tests__/installer.test.ts @@ -24,7 +24,11 @@ describe('installer tests', () => { const nodeDir = path.join(toolDir, 'node', '10.16.0', os.arch()); expect(fs.existsSync(`${nodeDir}.complete`)).toBe(true); - expect(fs.existsSync(path.join(nodeDir, 'node.exe'))).toBe(true); + if (IS_WINDOWS) { + expect(fs.existsSync(path.join(nodeDir, 'node.exe'))).toBe(true); + } else { + expect(fs.existsSync(path.join(nodeDir, 'bin', 'node'))).toBe(true); + } }, 100000); if (IS_WINDOWS) { @@ -41,11 +45,7 @@ describe('installer tests', () => { const nodeDir = path.join(toolDir, 'node', '0.12.18', os.arch()); expect(fs.existsSync(`${nodeDir}.complete`)).toBe(true); - if (IS_WINDOWS) { - expect(fs.existsSync(path.join(nodeDir, 'node.exe'))).toBe(true); - } else { - expect(fs.existsSync(path.join(nodeDir, 'bin', 'node'))).toBe(true); - } + expect(fs.existsSync(path.join(nodeDir, 'node.exe'))).toBe(true); }, 100000); }