Matthew Hodgson
b9ace61ccb
split long lines
2015-11-07 20:26:16 +00:00
Matthew Hodgson
21273582a4
room tagging unit tests
2015-11-07 20:23:21 +00:00
David Baker
904539df58
Fix c+p fail & add unit test
2015-11-04 12:02:02 +00:00
Kegan Dougal
343d63a28a
Merge branch 'develop' into room-avatars
2015-10-19 15:33:42 +01:00
Kegsay
0a28d6e950
Merge pull request #26 from matrix-org/invite-room-state
...
Invite room state
2015-10-19 15:31:45 +01:00
Kegan Dougal
2c213f88d9
Units! Tests! Linting!
2015-10-19 15:24:24 +01:00
Kegan Dougal
5ae87b7c95
Bug fixes and unit tests
2015-10-16 17:27:05 +01:00
Kegan Dougal
a101857cb6
Add integration tests for read receipts
2015-10-16 13:51:44 +01:00
Kegan Dougal
a52f92830a
Implement unit tests for read receipts.
2015-10-16 13:37:53 +01:00
Kegan Dougal
7ec8421d19
Fix linting errors
2015-10-16 11:38:49 +01:00
Kegan Dougal
9048efeb65
Implement receipt handling and expose new Room functions
...
Add polyfills for Array.map/filter according to MDN because it looks much
better than the utils format.
Add stub tests for edge cases and implement test for the common case.
2015-10-16 11:32:27 +01:00
Kegan Dougal
21df000604
Add Room.addEvents UT
2015-06-25 14:00:52 +01:00
Kegan Dougal
a12133ec9f
Appease linters
2015-06-24 11:44:00 +01:00
Kegan Dougal
f763eb3f37
Convert all helper functions which make events to use kwargs
2015-06-24 11:43:16 +01:00
Kegan Dougal
26a23b19b3
Use an opts for helper mk functions; poor man's keyword args.
2015-06-24 11:14:54 +01:00
Kegan Dougal
9d967fb232
Add some UTs to Room methods
2015-06-24 11:05:18 +01:00
Kegan Dougal
c6b11fc382
Make Room.calculateRoomName private to avoid confusion with Room.name.
2015-06-15 09:31:46 +01:00
Kegan Dougal
f9f8816b7d
Return '?' instead of 'Unknown' for rooms which names cannot be calculated.
...
This makes it easier to localise in the future (if name == '?'), whilst
still indicating an unknown name. Ideally we would be returning null, but
this would require null checks every time the room name was accessed, which
isn't ideal. This also makes the UT for this less brittle (rather than
comparing literal english strings which are prone to breakage when we
inevitably change 'Unknown' to 'unknown' or something else.
2015-06-10 09:44:53 +01:00
Kegan Dougal
44e3b55975
Appease linters.
2015-06-09 17:06:40 +01:00
Kegan Dougal
4ff6ecd58c
Add room name UTs and add self-chat room name.
2015-06-09 17:05:56 +01:00
Kegan Dougal
fd2bd4784d
Fix linters
2015-06-09 16:08:14 +01:00
Kegan Dougal
13462ad1aa
Add more Room and RoomState unit tests.
2015-06-09 16:07:44 +01:00