Skip to content

Commit

Permalink
Update CliTest.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
RCMartins committed Mar 4, 2021
1 parent fa75210 commit c645fec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions blinky-cli/src/test/scala/blinky/cli/CliTest.scala
Expand Up @@ -68,7 +68,8 @@ object CliTest extends TestSpec {
assert(parser.getErr)(equalTo(""))
},
testM("blinky empty.conf should return the default config options") {
val (zioResult, parser) = parse(getFilePath("empty.conf"))()
val (zioResult, parser) =
parse(getFilePath("empty.conf"))(File(getFilePath("some-project")))

for {
result <- zioResult
Expand All @@ -77,7 +78,7 @@ object CliTest extends TestSpec {
assert(result)(equalTo {
Right(
MutationsConfigValidated(
projectPath = File(getFilePath(".")),
projectPath = File(getFilePath("some-project")),
filesToMutate = "src/main/scala",
filesToExclude = "",
mutators = SimpleBlinkyConfig(
Expand All @@ -102,7 +103,8 @@ object CliTest extends TestSpec {
})
},
testM("blinky options1.conf should return the correct options") {
val (zioResult, parser) = parse(getFilePath("options1.conf"))()
val (zioResult, parser) =
parse(getFilePath("options1.conf"))(File(getFilePath("some-project")))

for {
result <- zioResult
Expand Down

0 comments on commit c645fec

Please sign in to comment.