kageru
7ebafc9958
Added a rawconfig as an intermediate step when parsing the TOML. This will make nullability much more reliable and also gives me lots of options in the future. It also broke all tests because reading the config (not the raw config) now depends on the discord API. :tehe:
17 lines
415 B
Kotlin
17 lines
415 B
Kotlin
package moe.kageru.kagebot
|
|
|
|
import io.kotlintest.shouldNotBe
|
|
import io.kotlintest.specs.StringSpec
|
|
import moe.kageru.kagebot.config.RawConfig
|
|
|
|
class ConfigTest : StringSpec({
|
|
/*
|
|
"should properly parse default config" {
|
|
Config.config shouldNotBe null
|
|
Config.config.commands shouldNotBe null
|
|
}
|
|
*/
|
|
"should convert to raw config" {
|
|
RawConfig.config shouldNotBe null
|
|
}
|
|
}) |