Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz committed Jun 30, 2023
1 parent 1a21836 commit a27f89e
Showing 1 changed file with 21 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,28 @@ import com.geirolz.app.toolkit.{App, SimpleAppInfo}
class Fly4sSupportSuite extends munit.CatsEffectSuite {

test("Syntax works as expected") {
assertIO_(
App[IO]
.withInfo(
SimpleAppInfo.string(
name = "toolkit",
version = "0.0.1",
scalaVersion = "2.13.10",
sbtVersion = "1.8.0"
)
App[IO]
.withInfo(
SimpleAppInfo.string(
name = "toolkit",
version = "0.0.1",
scalaVersion = "2.13.10",
sbtVersion = "1.8.0"
)
.withConfig(
TestConfig(
dbUrl = "jdbc:postgresql://localhost:5432/toolkit",
dbUser = Some("postgres"),
dbPassword = Some("postgres".toCharArray)
)
)
.withConfig(
TestConfig(
dbUrl = "jdbc:postgresql://localhost:5432/toolkit",
dbUser = Some("postgres"),
dbPassword = Some("postgres".toCharArray)
)
.withoutDependencies
.provideOne(_ => IO.unit)
.beforeProvidingMigrateDatabaseWithConfig(
url = _.dbUrl,
user = _.dbUser,
password = _.dbPassword
)
.run_
)
)
.withoutDependencies
.provideOne(_ => IO.unit)
.beforeProvidingMigrateDatabaseWithConfig(
url = _.dbUrl,
user = _.dbUser,
password = _.dbPassword
)
}
}

0 comments on commit a27f89e

Please sign in to comment.