Assert isTTY is undefined on Windows

This commit is contained in:
Kevin Sawicki 2016-09-08 11:01:58 -07:00 committed by Kevin Sawicki
parent 638c96345d
commit 63e9bc4804

View file

@ -233,9 +233,12 @@ describe('node feature', function () {
}) })
}) })
it('should have isTTY defined', function () { it('should have isTTY defined on Mac and Linux', function () {
if (isCI) return if (isCI) return
if (process.platform === 'win32')
assert.equal(process.stdout.isTTY, undefined)
else
assert.equal(typeof process.stdout.isTTY, 'boolean') assert.equal(typeof process.stdout.isTTY, 'boolean')
}) })
}) })