pub fn integer() -> ExpectIntegerExpand description
Expects a valid email address in the received JSON.
use axum_test::expect_json::expect;
let server = TestServer::new(Router::new())?;
server.get(&"/user/barrington")
.await
.assert_json(&json!({
"name": "Barrington",
"age": expect::integer().is_in_range(18..=100),
}));