You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
713 B
25 lines
713 B
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)
|
|
// }
|
|
}
|