matrix_sdk_test/test_json/search_users.rs
1use once_cell::sync::Lazy;
2use serde_json::{json, Value as JsonValue};
3
4pub static SEARCH_USERS_REQUEST: Lazy<JsonValue> = Lazy::new(|| {
5 json!({
6 "search_term": "test",
7 "limit": 50
8 })
9});
10
11pub static SEARCH_USERS_RESPONSE: Lazy<JsonValue> = Lazy::new(|| {
12 json!({
13 "limited": false,
14 "results": [
15 {
16 "user_id": "@test:example.me",
17 "display_name": "Test",
18 "avatar_url": "mxc://example.me/someid"
19 }
20 ]
21 })
22});