package wow.doge.http4sdemo import cats.effect.IO import org.http4s._ import org.http4s.implicits._ import munit.CatsEffectSuite class HelloWorldSpec extends CatsEffectSuite { // test("HelloWorld returns status code 200") { // assertIO(retHelloWorld.map(_.status), Status.Ok) // } // test("HelloWorld returns hello world message") { // assertIO( // retHelloWorld.flatMap(_.as[String]), // "{\"message\":\"Hello, world\"}" // ) // } // private[this] val retHelloWorld: IO[Response[IO]] = { // val getHW = Request[IO](Method.GET, uri"/hello/world") // val helloWorld = HelloWorld.impl[IO] // Http4sdemoRoutes.helloWorldRoutes(helloWorld).orNotFound(getHW) // } }