mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature: server: env -> env.parse
This commit is contained in:
parent
f0dcbe946f
commit
6856207d0d
4 changed files with 18 additions and 18 deletions
|
|
@ -6,7 +6,7 @@ const env = require('../../server/env');
|
|||
|
||||
test('env: small', (t) => {
|
||||
process.env.cloudcmd_hello = 'world';
|
||||
t.equal(env('hello'), 'world', 'should parse string from env');
|
||||
t.equal(env.parse('hello'), 'world', 'should parse string from env');
|
||||
|
||||
delete process.env.cloudcmd_hello;
|
||||
t.end();
|
||||
|
|
@ -14,7 +14,7 @@ test('env: small', (t) => {
|
|||
|
||||
test('env: big', (t) => {
|
||||
process.env.CLOUDCMD_HELLO = 'world';
|
||||
t.equal(env('hello'), 'world', 'should parse string from env');
|
||||
t.equal(env.parse('hello'), 'world', 'should parse string from env');
|
||||
|
||||
delete process.env.CLOUDCMD_HELLO;
|
||||
t.end();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue