Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
321 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | var assert = require('assert')
|
---|
| 4 | var clearRequire = require('clear-require')
|
---|
| 5 |
|
---|
| 6 | process.env.AWS_EXECUTION_ENV = 'AWS_Lambda_nodejs6.10'
|
---|
| 7 | process.env.LAMBDA_TASK_ROOT = '/var/task'
|
---|
| 8 |
|
---|
| 9 | var isCI = require('./')
|
---|
| 10 | assert(isCI)
|
---|
| 11 |
|
---|
| 12 | delete process.env.AWS_EXECUTION_ENV
|
---|
| 13 |
|
---|
| 14 | clearRequire('./')
|
---|
| 15 | isCI = require('./')
|
---|
| 16 | assert(!isCI)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.