UNPKG
remotevars
Version:
latest (0.1.1)
0.1.1
0.1.0
Carga variables de entorno desde múltiples providers remotos
remotevars
/
tests
/
provider.test.js
9 lines
(7 loc)
•
290 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ fetchConfig
as
fetchLocal }
from
"../src/providers/local.js"
;
describe
(
"Providers"
,
() =>
{
it
(
"local provider carga JSON correctamente"
,
async
() => {
const
vars =
await
fetchLocal
({
filePath
:
"./tests/test-config.json"
});
expect
(vars.
TEST_VAR
).
toBe
(
"123"
); }); });