MCPcopy
hub / github.com/motdotla/dotenv / testOption

Function testOption

tests/test-env-options.js:21–28  ·  view source on GitHub ↗
(envVar, tmpVal, expect)

Source from the content-addressed store, hash-verified

19}
20
21function testOption (envVar, tmpVal, expect) {
22 delete process.env[envVar]
23 process.env[envVar] = tmpVal
24
25 t.same(options(), expect)
26
27 delete process.env[envVar]
28}
29
30// returns empty object when no options set in process.env
31delete process.env.DOTENV_CONFIG_ENCODING

Callers 1

Calls 1

optionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…