mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 02:55:47 -04:00
test: Remove unused constants from test_json::messages
This commit is contained in:
committed by
Jonas Platte
parent
f62d561cb0
commit
75d64e697e
@@ -4,56 +4,6 @@
|
||||
use once_cell::sync::Lazy;
|
||||
use serde_json::{json, Value as JsonValue};
|
||||
|
||||
pub static ROOM_MESSAGES: Lazy<JsonValue> = Lazy::new(|| {
|
||||
json!({
|
||||
"chunk": [
|
||||
{
|
||||
"age": 1042,
|
||||
"content": {
|
||||
"body": "hello world",
|
||||
"msgtype": "m.text"
|
||||
},
|
||||
"event_id": "$1444812213350496Caaaa:example.com",
|
||||
"origin_server_ts": 1444812213737i64,
|
||||
"room_id": "!Xq3620DUiqCaoxq:example.com",
|
||||
"sender": "@alice:example.com",
|
||||
"type": "m.room.message"
|
||||
},
|
||||
{
|
||||
"age": 20123,
|
||||
"content": {
|
||||
"body": "the world is big",
|
||||
"msgtype": "m.text"
|
||||
},
|
||||
"event_id": "$1444812213350496Cbbbb:example.com",
|
||||
"origin_server_ts": 1444812194656i64,
|
||||
"room_id": "!Xq3620DUiqCaoxq:example.com",
|
||||
"sender": "@bob:example.com",
|
||||
"type": "m.room.message"
|
||||
},
|
||||
{
|
||||
"age": 50789,
|
||||
"content": {
|
||||
"name": "New room name"
|
||||
},
|
||||
"event_id": "$1444812213350496Ccccc:example.com",
|
||||
"origin_server_ts": 1444812163990i64,
|
||||
"unsigned": {
|
||||
"prev_content": {
|
||||
"name": "Old room name",
|
||||
},
|
||||
},
|
||||
"room_id": "!Xq3620DUiqCaoxq:example.com",
|
||||
"sender": "@bob:example.com",
|
||||
"state_key": "",
|
||||
"type": "m.room.name"
|
||||
}
|
||||
],
|
||||
"end": "t47409-4357353_219380_26003_2265",
|
||||
"start": "t47429-4392820_219380_26003_2265"
|
||||
})
|
||||
});
|
||||
|
||||
pub static ROOM_MESSAGES_BATCH_1: Lazy<JsonValue> = Lazy::new(|| {
|
||||
json!({
|
||||
"chunk": [
|
||||
@@ -103,53 +53,3 @@ pub static ROOM_MESSAGES_BATCH_1: Lazy<JsonValue> = Lazy::new(|| {
|
||||
"start": "t392-516_47314_0_7_1_1_1_11444_1"
|
||||
})
|
||||
});
|
||||
|
||||
pub static ROOM_MESSAGES_BATCH_2: Lazy<JsonValue> = Lazy::new(|| {
|
||||
json!({
|
||||
"chunk": [
|
||||
{
|
||||
"age": 1042,
|
||||
"content": {
|
||||
"body": "hello world",
|
||||
"msgtype": "m.text"
|
||||
},
|
||||
"event_id": "$1444812213350496Caaak:example.com",
|
||||
"origin_server_ts": 1444812213737i64,
|
||||
"room_id": "!Xq3620DUiqCaoxq:example.com",
|
||||
"sender": "@alice:example.com",
|
||||
"type": "m.room.message"
|
||||
},
|
||||
{
|
||||
"age": 20123,
|
||||
"content": {
|
||||
"body": "the world is big",
|
||||
"msgtype": "m.text"
|
||||
},
|
||||
"event_id": "$1444812213350496Cbbbk:example.com",
|
||||
"origin_server_ts": 1444812194656i64,
|
||||
"room_id": "!Xq3620DUiqCaoxq:example.com",
|
||||
"sender": "@bob:example.com",
|
||||
"type": "m.room.message"
|
||||
},
|
||||
{
|
||||
"age": 50789,
|
||||
"content": {
|
||||
"name": "New room name"
|
||||
},
|
||||
"event_id": "$1444812213350496Cccck:example.com",
|
||||
"origin_server_ts": 1444812163990i64,
|
||||
"unsigned": {
|
||||
"prev_content": {
|
||||
"name": "Old room name",
|
||||
},
|
||||
},
|
||||
"room_id": "!Xq3620DUiqCaoxq:example.com",
|
||||
"sender": "@bob:example.com",
|
||||
"state_key": "",
|
||||
"type": "m.room.name"
|
||||
}
|
||||
],
|
||||
"end": "t47409-4357353_219380_26003_2270",
|
||||
"start": "t47409-4357353_219380_26003_2269"
|
||||
})
|
||||
});
|
||||
|
||||
@@ -21,7 +21,7 @@ pub use api_responses::{
|
||||
UNKNOWN_TOKEN_SOFT_LOGOUT, VERSIONS, WELL_KNOWN, WHOAMI,
|
||||
};
|
||||
pub use members::MEMBERS;
|
||||
pub use messages::{ROOM_MESSAGES, ROOM_MESSAGES_BATCH_1, ROOM_MESSAGES_BATCH_2};
|
||||
pub use messages::ROOM_MESSAGES_BATCH_1;
|
||||
pub use sync::{
|
||||
DEFAULT_SYNC_ROOM_ID, DEFAULT_SYNC_SUMMARY, INVITE_SYNC, LEAVE_SYNC, LEAVE_SYNC_EVENT,
|
||||
MORE_SYNC, MORE_SYNC_2, SYNC, VOIP_SYNC,
|
||||
|
||||
Reference in New Issue
Block a user