pub fn string() -> ExpectStringExpand description
Expect a string. See ExpectString for further methods to defined
the length, and partial contents, that is expected.
use axum_test::expect_json;
let server = TestServer::new(Router::new())?;
server.get(&"/user/barrington")
.await
.assert_json(&json!({
"name": expect_json::string(),
}));