1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-30 04:23:07 +03:00

Use an opts for helper mk functions; poor man's keyword args.

This commit is contained in:
Kegan Dougal
2015-06-24 11:14:54 +01:00
parent 9d967fb232
commit 26a23b19b3
3 changed files with 43 additions and 16 deletions

View File

@ -42,7 +42,9 @@ describe("Room", function() {
describe("addEventsToTimeline", function() {
var events = [
new MatrixEvent(utils.mkMessage(roomId, userA, "changing room name")),
utils.mkMessage({
room: roomId, user: userA, msg: "changing room name", event: true
}),
new MatrixEvent(utils.mkEvent("m.room.name", roomId, userA, {
name: "New Room Name"
}))