mirror of
https://github.com/sebastiandine/Card-Collection-Manager-3.git
synced 2026-08-29 01:08:49 +00:00
patch: Feature/pkm autodetect (#15)
This commit is contained in:
@@ -46,4 +46,11 @@ TEST_SUITE("mapHttpGetResponse") {
|
||||
REQUIRE(out.isErr());
|
||||
CHECK(out.error() == "HTTP 404 from https://api.example/r");
|
||||
}
|
||||
|
||||
TEST_CASE("HTTP 200 with empty body still maps to success") {
|
||||
const auto out =
|
||||
mapHttpGetResponse(false, {}, 200, "", "https://api.example/empty");
|
||||
REQUIRE(out.isOk());
|
||||
CHECK(out.value().empty());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user