http4s-munit
http4s-munit copied to clipboard
Compare the results of two api calls
I would like to call two different api routes and then make an assertion that relies on values from the results of both calls, however I don't see any way to nest or call two separate routes and retain the results for both unless I'm missing something.
ie something like this
test(GET(uri"routeA")).and(GET(uri"routeB")) { (responseA,responseB) =>
......
assertEquals(resultA.field, resultB.field)
}
Hey @listba, sorry, but that is something the library doesn't allow doing at the moment 😞. I'll be happy to review a PR that adds that functionality though 😊