pub fn email() -> ExpectEmailExpand description
Expect a valid-looking email address.
It makes no guarantees if the address is actually registered or in use.
use axum_test::expect_json;
let server = TestServer::new(Router::new())?;
server.get(&"/user")
.await
.assert_json(&json!({
"name": "John Doe",
"email": expect_json::email(),
}));