You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
321 B
JavaScript
17 lines
321 B
JavaScript
8 months ago
|
'use strict'
|
||
|
|
||
|
var assert = require('assert')
|
||
|
var clearRequire = require('clear-require')
|
||
|
|
||
|
process.env.AWS_EXECUTION_ENV = 'AWS_Lambda_nodejs6.10'
|
||
|
process.env.LAMBDA_TASK_ROOT = '/var/task'
|
||
|
|
||
|
var isCI = require('./')
|
||
|
assert(isCI)
|
||
|
|
||
|
delete process.env.AWS_EXECUTION_ENV
|
||
|
|
||
|
clearRequire('./')
|
||
|
isCI = require('./')
|
||
|
assert(!isCI)
|