From 63e9bc48049861bb679c15f84668affe45eefeb1 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 8 Sep 2016 11:01:58 -0700 Subject: [PATCH] Assert isTTY is undefined on Windows --- spec/node-spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/node-spec.js b/spec/node-spec.js index 6d83b5ee48..3eb7211c6d 100644 --- a/spec/node-spec.js +++ b/spec/node-spec.js @@ -233,10 +233,13 @@ describe('node feature', function () { }) }) - it('should have isTTY defined', function () { + it('should have isTTY defined on Mac and Linux', function () { if (isCI) return - assert.equal(typeof process.stdout.isTTY, 'boolean') + if (process.platform === 'win32') + assert.equal(process.stdout.isTTY, undefined) + else + assert.equal(typeof process.stdout.isTTY, 'boolean') }) })