//! Integration test template
//!
//! Add your API integration tests here.

use actix_web::{test, App};

// Example test — replace with actual API tests
#[actix_web::test]
async fn test_health_endpoint() {
    let app = test::init_service(App::new().route("/health", actix_web::web::get().to(|| {
        actix_web::HttpResponse::Ok().json(serde_json::json!({"status": "ok"}))
    }))).await;

    let req = test::TestRequest::get().uri("/health").to_request();
    let resp = test::call_service(&app, req).await;
    assert!(resp.status().is_success());
}