finki-main
main
|
Last change
on this file since 62b2964 was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
321 bytes
|
| Rev | Line | |
|---|
| [81bc7da] | 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.