blob: a9938bbdb8ecfc00ec56a93652fcf3def6bff3cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict'
var assert = require('assert')
var clearRequire = require('clear-require')
process.env.CI = 'true'
var isCI = require('./')
assert(isCI)
delete process.env.CI
delete process.env.CONTINUOUS_INTEGRATION
delete process.env.BUILD_NUMBER
delete process.env.TRAVIS
clearRequire('./')
clearRequire('ci-info')
isCI = require('./')
assert(!isCI)
|