From a62ec679bdaaba07da6c709d4c79e6f054032cdb Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 15 May 2019 12:49:13 -0700 Subject: [PATCH] Move readFileSync out of test --- src/Terminal.integration.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Terminal.integration.ts b/src/Terminal.integration.ts index 84dfbf8b..fa4403f4 100644 --- a/src/Terminal.integration.ts +++ b/src/Terminal.integration.ts @@ -113,10 +113,6 @@ if (os.platform() !== 'win32') { 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 63, 68 ]; - // These are failing on Linux only - if (os.platform() === 'linux') { - skip.push(0); - } // These are failing on macOS only if (os.platform() === 'darwin') { skip.push(3, 7, 11, 67); @@ -126,9 +122,9 @@ if (os.platform() !== 'win32') { continue; } ((filename: string) => { + const inFile = fs.readFileSync(filename, 'utf8'); it(filename.split('/').slice(-1)[0], done => { ptyReset(() => { - const inFile = fs.readFileSync(filename, 'utf8'); ptyWriteRead(inFile, fromPty => { // uncomment this to get log from terminal // console.log = function(){};