Fix typos in testing page (18) (#61)

oogee 2023-07-30 18:41:51 +03:00 committed by GitHub
parent 0337917ce2
commit 23cd725d60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

@ -111,7 +111,7 @@ DROGON_TEST(RemoteAPITest)
REQUIRE(res == ReqResult::Ok); REQUIRE(res == ReqResult::Ok);
REQUIRE(resp != nullptr); REQUIRE(resp != nullptr);
CHECK(resp->getStatusCode == k200Ok); CHECK(resp->getStatusCode() == k200OK);
CHECK(resp->contentType() == CT_APPLICATION_JSON); CHECK(resp->contentType() == CT_APPLICATION_JSON);
}); });
} }
@ -129,7 +129,7 @@ DROGON_TEST(RemoteAPITestCoro)
auto resp = co_await client->sendRequestCoro(req); auto resp = co_await client->sendRequestCoro(req);
CO_REQUIRE(resp != nullptr); CO_REQUIRE(resp != nullptr);
CHECK(resp->getStatusCode == k200Ok); CHECK(resp->getStatusCode() == k200OK);
CHECK(resp->contentType() == CT_APPLICATION_JSON); CHECK(resp->contentType() == CT_APPLICATION_JSON);
}; };

@ -111,7 +111,7 @@ DROGON_TEST(RemoteAPITest)
REQUIRE(res == ReqResult::Ok); REQUIRE(res == ReqResult::Ok);
REQUIRE(resp != nullptr); REQUIRE(resp != nullptr);
CHECK(resp->getStatusCode == k200Ok); CHECK(resp->getStatusCode() == k200OK);
CHECK(resp->contentType() == CT_APPLICATION_JSON); CHECK(resp->contentType() == CT_APPLICATION_JSON);
}); });
} }
@ -129,7 +129,7 @@ DROGON_TEST(RemoteAPITestCoro)
auto resp = co_await client->sendRequestCoro(req); auto resp = co_await client->sendRequestCoro(req);
CO_REQUIRE(resp != nullptr); CO_REQUIRE(resp != nullptr);
CHECK(resp->getStatusCode == k200Ok); CHECK(resp->getStatusCode() == k200OK);
CHECK(resp->contentType() == CT_APPLICATION_JSON); CHECK(resp->contentType() == CT_APPLICATION_JSON);
}; };