mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-01 17:45:18 +00:00
23 lines
469 B
Nim
23 lines
469 B
Nim
|
import
|
||
|
std/unittest,
|
||
|
../confutils,
|
||
|
../confutils/defs
|
||
|
|
||
|
type
|
||
|
TestConf* = object
|
||
|
dataDir* {.
|
||
|
ignore
|
||
|
defaultValue: "nimbus"
|
||
|
name: "data-dir"}: string
|
||
|
|
||
|
logLevel* {.
|
||
|
defaultValue: "DEBUG"
|
||
|
desc: "Sets the log level."
|
||
|
name: "log-level" }: string
|
||
|
|
||
|
suite "test ignore option":
|
||
|
test "ignored option have no default value":
|
||
|
let conf = TestConf.load()
|
||
|
doAssert(conf.logLevel == "DEBUG")
|
||
|
doAssert(conf.dataDir == "")
|