feature: server: env -> env.parse

This commit is contained in:
coderiaser 2026-01-14 13:19:41 +02:00
parent f0dcbe946f
commit 6856207d0d
4 changed files with 18 additions and 18 deletions

View file

@ -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();