11const test = require ( 'tape' )
22
3- const { makeEnvironment } = require ( '../src/common.js' )
3+ const { makeEnvironment, resolveConfiguration } = require ( '../src/common.js' )
44
55const defaults = require ( '../src/defaults.js' )
66
@@ -13,7 +13,7 @@ test('build runtime environment based on defaults', function(t) {
1313 const cache = { }
1414 const config = { }
1515
16- const actual = makeEnvironment ( argv , cache , config )
16+ const actual = makeEnvironment ( resolveConfiguration ( argv , cache , config ) )
1717
1818 const expected = {
1919 DHIS2_CORE_NAME : 'dev' ,
@@ -42,7 +42,7 @@ test('build runtime environment based on args', function(t) {
4242 const cache = { }
4343 const config = { }
4444
45- const actual = makeEnvironment ( argv , cache , config )
45+ const actual = makeEnvironment ( resolveConfiguration ( argv , cache , config ) )
4646
4747 const expected = {
4848 DHIS2_CORE_NAME : 'dev' ,
@@ -73,7 +73,7 @@ test('build runtime environment based on mixed args and config', function(t) {
7373 dbVersion : 'dev' ,
7474 }
7575
76- const actual = makeEnvironment ( argv , cache , config )
76+ const actual = makeEnvironment ( resolveConfiguration ( argv , cache , config ) )
7777
7878 const expected = {
7979 DHIS2_CORE_NAME : 'mydev' ,
@@ -104,7 +104,7 @@ test('build runtime environment based on mixed args, cache, config and defaults'
104104 dhis2Version : 'dev' ,
105105 }
106106
107- const actual = makeEnvironment ( argv , cache , config )
107+ const actual = makeEnvironment ( resolveConfiguration ( argv , cache , config ) )
108108
109109 const expected = {
110110 DHIS2_CORE_NAME : 'mydev' ,
0 commit comments