use axum::extract::State; use super::get; use crate::test::fixtures; #[tokio::test] async fn returns_identity() { let app = fixtures::scratch_app().await; let identity = fixtures::identity::fictitious(); let response = get::handler(State(app), identity.clone()) .await .expect("boot always succeeds"); assert_eq!(identity.login, response.login); }