mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
* introduce createNode # Conflicts: # apps/wakunode2/cli_args.nim * remove confutils dependency on the library * test: remove websocket in default test config * update to latest specs * test: cli_args * align to spec changes (sovereign, message conf, entrypoints * accept enr, entree and multiaddr as entry points * post rebase * format * change from "sovereign" to "core" * add example * get example to continue running * nitpicks * idiomatic constructors * fix enum naming * replace procs with consts * remove messageConfirmation * use pure enum * rename example file
18 lines
351 B
Nim
18 lines
351 B
Nim
{.used.}
|
|
|
|
import testutils/unittests
|
|
import ../../tools/confutils/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"
|