mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
spec: Suppress isCI test on CI
This commit is contained in:
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user