Skip to content

Commit

Permalink
minor: Apply review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Dec 18, 2024
1 parent b002a4e commit c6a9439
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package metaconfig
import metaconfig.Configured.NotOk
import metaconfig.Configured.Ok

class ConfDynamicSuite extends munit.FunSuite {

Expand All @@ -22,8 +20,10 @@ class ConfDynamicSuite extends munit.FunSuite {
}
test("did you mean?") {
conf.dynamic.banna.asConf match {
case NotOk(err) => assert(err.toString.contains("Did you mean 'banana'"))
case Ok(value) => fail("Expected \"Did you mean 'banana'\" error")
case Configured.NotOk(err) =>
assert(err.toString.contains("Did you mean 'banana'"))
case Configured.Ok(value) =>
fail("Expected \"Did you mean 'banana'\" error")
}
}
}

0 comments on commit c6a9439

Please sign in to comment.