NET-Web-API-w-Angular/my-app/node_modules/is-lambda/test.js

17 lines
321 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
'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)