pub fn array() -> ExpectArrayExpand description
Expects a JSON array. This has further operations to assert the length, uniqueness, all values meet a condition, etc.
use axum_test::expect_json::expect;
let server = TestServer::new(Router::new())?;
server.get(&"/user/barrington")
.await
.assert_json(&json!({
"name": "Barrington",
"tags": expect::array().all(expect::string()),
}));