| /** | |
| * @file test_routes.cpp | |
| * @brief Tests for API routes. | |
| */ | |
| using namespace app::api; | |
| TEST(RoutesTest, HealthCheckReturns200) { | |
| auto response = health_check(); | |
| EXPECT_EQ(response.status_code, 200); | |
| EXPECT_EQ(response.content_type, "application/json"); | |
| EXPECT_NE(response.body.find("ok"), std::string::npos); | |
| } | |