nwaku/tests/v2/test_envvar_serialization.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"