badUser isn't defined

This commit is contained in:
jesopo 2022-07-01 14:16:45 +00:00
parent 96f7c2f9c2
commit cc063f8b0b

View File

@ -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)}`, "", {