🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

assert-env

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assert-env - npm Package Compare versions

Comparing version

to
0.3.0

2

package.json
{
"name": "assert-env",
"version": "0.2.0",
"version": "0.3.0",
"description": "Assert that specific environment variables exist.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -25,3 +25,3 @@ 'use strict';

test('assert', function (t) {
test('throws when missing keys', function (t) {
process.env.HTTP_LISTEN_PORT = 4242;

@@ -38,1 +38,16 @@

});
test('does not throw when all keys exist', function (t) {
process.env.HTTP_LISTEN_PORT = 4242;
process.env.HTTP_LISTEN_HOST = '0.0.0.0';
var fn = simulate([
'HTTP_LISTEN_PORT',
'HTTP_LISTEN_HOST'
]);
assert.doesNotThrow(fn, ReferenceError);
t.end();
});