|
@@ -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')
|
|
|
+ }
|
|
|
})
|
|
|
})
|
|
|
|