Apply prettier formatting
This commit is contained in:
parent
1cac306093
commit
526645c791
1576 changed files with 65385 additions and 62478 deletions
|
@ -32,46 +32,53 @@ describe("SearchResultTile", () => {
|
|||
it("Sets up appropriate callEventGrouper for m.call. events", () => {
|
||||
const { container } = render(
|
||||
<SearchResultTile
|
||||
searchResult={SearchResult.fromJson({
|
||||
rank: 0.00424866,
|
||||
result: {
|
||||
content: {
|
||||
body: "This is an example text message",
|
||||
format: "org.matrix.custom.html",
|
||||
formatted_body: "<b>This is an example text message</b>",
|
||||
msgtype: "m.text",
|
||||
searchResult={SearchResult.fromJson(
|
||||
{
|
||||
rank: 0.00424866,
|
||||
result: {
|
||||
content: {
|
||||
body: "This is an example text message",
|
||||
format: "org.matrix.custom.html",
|
||||
formatted_body: "<b>This is an example text message</b>",
|
||||
msgtype: "m.text",
|
||||
},
|
||||
event_id: "$144429830826TWwbB:localhost",
|
||||
origin_server_ts: 1432735824653,
|
||||
room_id: "!qPewotXpIctQySfjSy:localhost",
|
||||
sender: "@example:example.org",
|
||||
type: "m.room.message",
|
||||
unsigned: {
|
||||
age: 1234,
|
||||
},
|
||||
},
|
||||
event_id: "$144429830826TWwbB:localhost",
|
||||
origin_server_ts: 1432735824653,
|
||||
room_id: "!qPewotXpIctQySfjSy:localhost",
|
||||
sender: "@example:example.org",
|
||||
type: "m.room.message",
|
||||
unsigned: {
|
||||
age: 1234,
|
||||
context: {
|
||||
end: "",
|
||||
start: "",
|
||||
profile_info: {},
|
||||
events_before: [
|
||||
{
|
||||
type: EventType.CallInvite,
|
||||
sender: "@user1:server",
|
||||
room_id: "!qPewotXpIctQySfjSy:localhost",
|
||||
origin_server_ts: 1432735824652,
|
||||
content: { call_id: "call.1" },
|
||||
event_id: "$1:server",
|
||||
},
|
||||
],
|
||||
events_after: [
|
||||
{
|
||||
type: EventType.CallAnswer,
|
||||
sender: "@user2:server",
|
||||
room_id: "!qPewotXpIctQySfjSy:localhost",
|
||||
origin_server_ts: 1432735824654,
|
||||
content: { call_id: "call.1" },
|
||||
event_id: "$2:server",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
context: {
|
||||
end: "",
|
||||
start: "",
|
||||
profile_info: {},
|
||||
events_before: [{
|
||||
type: EventType.CallInvite,
|
||||
sender: "@user1:server",
|
||||
room_id: "!qPewotXpIctQySfjSy:localhost",
|
||||
origin_server_ts: 1432735824652,
|
||||
content: { call_id: "call.1" },
|
||||
event_id: "$1:server",
|
||||
}],
|
||||
events_after: [{
|
||||
type: EventType.CallAnswer,
|
||||
sender: "@user2:server",
|
||||
room_id: "!qPewotXpIctQySfjSy:localhost",
|
||||
origin_server_ts: 1432735824654,
|
||||
content: { call_id: "call.1" },
|
||||
event_id: "$2:server",
|
||||
}],
|
||||
},
|
||||
}, o => new MatrixEvent(o))}
|
||||
(o) => new MatrixEvent(o),
|
||||
)}
|
||||
/>,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue