Skip to content

Commit

Permalink
Merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
987Nabil committed Jun 9, 2024
1 parent 5cc6b94 commit 07ee474
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ object MultipartSpec extends ZIOHttpSpec {
)
for {
result <- (endpoint
.implement(handler { (id: Int) =>
(Book("John's Book", List("John Doe")), ZStream.from(Chunk.fromArray("the book file".getBytes)))
})
.implementPurely(_ =>
(Book("John's Book", List("John Doe")), ZStream.from(Chunk.fromArray("the book file".getBytes))),
)
.toRoutes @@ Middleware.debug).run(path = Path.root / "books" / "123")
} yield assertTrue(
result.status == Status.Ok,
Expand Down

0 comments on commit 07ee474

Please sign in to comment.