blob: 04308543014447ad39402f19eebd79552ed18da9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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);
}
|