nwaku/tests/common/test_envvar_serialization.nim

18 lines
341 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"