From e4d30ccfc31e9eeb9e5bd7587a21c61721720729 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 20 Jun 2016 11:16:17 +0900 Subject: [PATCH] spec: Suppress isCI test on CI --- spec/node-spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/node-spec.js b/spec/node-spec.js index 443b9be5624b..93905b49d7e6 100644 --- a/spec/node-spec.js +++ b/spec/node-spec.js @@ -5,6 +5,8 @@ const path = require('path') const os = require('os') const {remote} = require('electron') +const isCI = remote.getGlobal('isCi') + describe('node feature', function () { var fixtures = path.join(__dirname, 'fixtures') @@ -226,6 +228,8 @@ describe('node feature', function () { }) it('should have isTTY defined', function () { + if (isCI) return + assert.equal(typeof process.stdout.isTTY, 'boolean') }) })