mirror of https://github.com/waku-org/nwaku.git
20 lines
355 B
Nim
20 lines
355 B
Nim
|
{.used.}
|
||
|
|
||
|
import
|
||
|
testutils/unittests
|
||
|
import
|
||
|
../../waku/common/envvar_serialization/utils
|
||
|
|
||
|
|
||
|
suite "nim-envvar-serialization - utils":
|
||
|
test "construct env var key":
|
||
|
## Given
|
||
|
let prefix = "some-prefix"
|
||
|
let name = @["db-url"]
|
||
|
|
||
|
## When
|
||
|
let key = constructKey(prefix, name)
|
||
|
|
||
|
## Then
|
||
|
check:
|
||
|
key == "SOME_PREFIX_DB_URL"
|