source: trip-planner-front/node_modules/is-lambda/test.js@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 321 bytes
Line 
1'use strict'
2
3var assert = require('assert')
4var clearRequire = require('clear-require')
5
6process.env.AWS_EXECUTION_ENV = 'AWS_Lambda_nodejs6.10'
7process.env.LAMBDA_TASK_ROOT = '/var/task'
8
9var isCI = require('./')
10assert(isCI)
11
12delete process.env.AWS_EXECUTION_ENV
13
14clearRequire('./')
15isCI = require('./')
16assert(!isCI)
Note: See TracBrowser for help on using the repository browser.