wallet-core/node_modules/is-ci/test.js

18 lines
322 B
JavaScript
Raw Normal View History

2017-05-28 00:38:50 +02:00
'use strict'
var assert = require('assert')
var clearRequire = require('clear-require')
if (!process.env.TRAVIS) process.env.CI = 'true'
var isCI = require('./')
assert(isCI)
delete process.env.CI
delete process.env.CONTINUOUS_INTEGRATION
clearRequire('./')
clearRequire('ci-info')
isCI = require('./')
assert(!isCI)