use axum::Router;
use axum::routing::get;
use axum_test::TestServer;

use crate::handlers::get_root::get_root;

#[tokio::test]
async fn test_root_handler() {
    let app = Router::new().route("/", get(get_root));
    let server = TestServer::new(app);

    let response = server.get("/").await;
    response.assert_status_ok();
    response.assert_text("ok");
}
