Travis Ralston
b8092cd00b
Make the tests pass
2020-01-23 20:41:52 -07:00
Bruno Windels
dc38f78da2
add unit tests for verification request
2020-01-22 17:39:21 +01:00
Bruno Windels
e89528315d
enable fake timers for consistency
...
although it doesn't make or break the test
2020-01-20 14:04:32 +01:00
Bruno Windels
c34ccc9d53
adjust test: requestVerification returns the request instead of verifier
2020-01-20 14:03:43 +01:00
Travis Ralston
034b8db070
Convert tests to ES6
...
The earlier commit, d3ce0cb82f
, has most of the juicy details on this. In addition to d3ce's changes, we also:
* Use `TestClient` in many integration tests due to subtle behaviour changes in imports when switching to ES6. Namely the behaviour where setting the request function is less reliable in the way we did it, but `TestClient` is very reliable.
* We now use the Olm loader more often to avoid having to maintain so much duplicate code. This makes the imports slightly easier to read.
2019-12-17 15:16:37 -07:00
Travis Ralston
ca6a52727c
Fix logger imports in tests
2019-12-10 11:39:56 -07:00
Michael Telatynski
057303d57c
s/beforeEach/beforeAll/ for Olm.init() and cleanup sas.spec.js
2019-11-25 13:26:10 +00:00
Michael Telatynski
fd58957b06
migrate to jest from mocha+expect+istanbul
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-11-20 19:52:50 +00:00
David Baker
3e2d845342
Merge remote-tracking branch 'origin/develop' into dbkr/cross_signing
2019-10-28 16:47:16 +00:00
David Baker
8cad116dd7
Make tests pass
...
* Pass the http backend out of makeTestClients so we can tell it
to expect queries and flush requests out
* Change colons to dots in the key events
2019-10-28 14:56:35 +00:00
Travis Ralston
f80af68686
End the verification timer when verification is done
...
Fixes https://github.com/matrix-org/matrix-js-sdk/issues/980
This also improves cleanliness in the tests to cancel/terminate timers when needed.
2019-07-10 14:51:12 -06:00
jkasun
a73dabcb67
Console logging to loglevel
2019-05-19 09:29:40 +05:30
Hubert Chathi
244e1b84f7
Initial implementation of key verification
2019-01-23 13:34:25 -05:00