Skip to content

Commit

Permalink
add back in missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
alterationx10 committed Jul 6, 2023
1 parent cf0e4e8 commit 9593b8c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions opinions/src/test/scala/opinions/ZIOSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ object ZIOSpec extends ZIOSpecDefault:
config.b == 1234
)
},
test("Auto derives a layer for a case class") {
for {
service <- ZIO
.service[TestServiceImpl]
.provide(
AutoLayer[TestServiceImpl],
0.ulayer,
ConfigLayer[TestConfig]("com.alterationx10.testconfig")
)
} yield assertTrue(
service.port == 0,
service.config.a == "hello",
service.config.b == 1234
)
},
test("Auto derives a layer for a service as the parent type") {
for {
service <- ZIO
Expand Down

0 comments on commit 9593b8c

Please sign in to comment.