mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
badUser
isn't defined
This commit is contained in:
parent
96f7c2f9c2
commit
cc063f8b0b
@ -39,7 +39,7 @@ describe("Test: Report polling", function() {
|
|||||||
await this.mjolnir.client.inviteUser(await client.getUserId(), roomId);
|
await this.mjolnir.client.inviteUser(await client.getUserId(), roomId);
|
||||||
await client.joinRoom(roomId);
|
await client.joinRoom(roomId);
|
||||||
|
|
||||||
const eventId = await badUser.sendMessaage(roomId, {msgtype: "m.text", body: "uwNd3q"});
|
const eventId = await client.sendMessaage(roomId, {msgtype: "m.text", body: "uwNd3q"});
|
||||||
await client.doRequest(
|
await client.doRequest(
|
||||||
"POST",
|
"POST",
|
||||||
`/_matrix/client/r0/rooms/${encodeURIComponent(roomId)}/report/${encodeURIComponent(eventId)}`, "", {
|
`/_matrix/client/r0/rooms/${encodeURIComponent(roomId)}/report/${encodeURIComponent(eventId)}`, "", {
|
||||||
|
Loading…
Reference in New Issue
Block a user