Richard van der Hoff
e25112ad35
Fix exceptions when dealing with redactions
...
When we got a redaction event, we were adding the entire (circular) MatrixEvent
object for the redaction to the redacted event, which would then cause
exceptions down the line (particularly when dealing with gappy timelines).
We should only be adding the raw event.
Fixes (hopefully) https://github.com/vector-im/vector-web/issues/1389 .
2016-08-30 14:30:12 +01:00
Richard van der Hoff
60a243f160
Rename 'exceptFail' to 'failTest', and move it out to test-utils.js
2016-01-27 09:48:28 +00:00
Kegan Dougal
465635444f
s/user_id/sender/g in tests
2015-12-11 15:07:40 +00:00
Kegan Dougal
3d9d31d6b1
Fix remaining integration tests
2015-12-11 13:22:27 +00:00
Kegan Dougal
32c4d3ffc4
Parse m.presence events from /events
2015-07-20 10:07:34 +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
8d2f058d3d
Appease linters
2015-06-08 17:31:53 +01:00
Kegan Dougal
a43447b00e
Add tests to exercise room name / timeline logic; fix some bugs as a result.
2015-06-08 17:27:10 +01:00
Kegan Dougal
8d8efd037b
Appease linters.
2015-06-08 10:32:20 +01:00
Kegan Dougal
c4aeac31c1
Fix tests; add logs and use promises when flushing.
2015-06-08 10:17:24 +01:00