14 lines
353 B
JavaScript
14 lines
353 B
JavaScript
const t = require('tap')
|
|
|
|
const options = require('../lib/cli-options')
|
|
|
|
t.plan(2)
|
|
|
|
t.same(options(['node', '-e', "'console.log(testing)'", 'dotenv_config_encoding=utf8']), {
|
|
encoding: 'utf8'
|
|
})
|
|
|
|
t.same(options(['node', '-e', "'console.log(testing)'", 'dotenv_config_path=/custom/path/to/your/env/vars']), {
|
|
path: '/custom/path/to/your/env/vars'
|
|
})
|