diff --git a/spec/node-spec.js b/spec/node-spec.js index 3eb7211c6da5..5742bea7f81d 100644 --- a/spec/node-spec.js +++ b/spec/node-spec.js @@ -236,10 +236,11 @@ describe('node feature', function () { it('should have isTTY defined on Mac and Linux', function () { if (isCI) return - if (process.platform === 'win32') + if (process.platform === 'win32') { assert.equal(process.stdout.isTTY, undefined) - else + } else { assert.equal(typeof process.stdout.isTTY, 'boolean') + } }) })