Kerry
518e16e6d5
matrix-mock-request to 2.0.1 ( #2416 )
...
* matrix-mock-request to 2.0.0
Signed-off-by: Kerry Archibald <kerrya@element.io >
* track and destroy timeouts from test client
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove debug
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix bad property refernce caught by ts TestClient
Signed-off-by: Kerry Archibald <kerrya@element.io >
* Revert "fix bad property refernce caught by ts TestClient"
This reverts commit 92c9f6cb13 .
* update yarn lock
Signed-off-by: Kerry Archibald <kerrya@element.io >
* correct IUploadKeysRequest type
* fix types in TestClient for typed matrix-mock-request
Signed-off-by: Kerry Archibald <kerrya@element.io >
* update to matrix-mock-request 2.0.1
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-06-03 08:35:26 +00:00
Aaron R
80aaa6c32b
Fix imports to work with new lint rules ( #2003 )
...
* Add eslint-plugin-import
Signed-off-by: Aaron Raimist <aaron@raim.ist >
* Autofix
Signed-off-by: Aaron Raimist <aaron@raim.ist >
* Manual fix
Signed-off-by: Aaron Raimist <aaron@raim.ist >
2021-12-09 15:57:43 -07:00
Travis Ralston
e1edd84700
Early pass to fix runtime/build errors
2021-06-02 13:42:20 -06:00
Germain Souquet
5caf05cfa1
Apply new linting rules
2021-05-11 11:25:43 +01:00
J. Ryan Stinnett
102704e91a
Migrate to eslint-plugin-matrix-org
...
This migrates to the new plugin form of our custom ESLint configs. As part of
this, some packages are de-duplicated, configs streamlined, etc.
2021-04-13 11:00:41 +01:00
J. Ryan Stinnett
09bd91a588
Enforce logger module via lint rules
...
This adds lint rules (and fixes various errors) to ensure we use the `logger`
intermediary module, rather than accessing the console directly.
2020-10-01 14:28:24 +01:00
Travis Ralston
b8092cd00b
Make the tests pass
2020-01-23 20:41:52 -07:00
Bruno Windels
e5c65d53f8
set transaction_id for remote echos in TestClient
...
as InRoomChannel looks at this to decide whether an event is
a remote echo (and to pass it to the verifier or not)
2020-01-20 17:54:26 +01:00
Bruno Windels
c12a3b6610
more fixup: make sure remote echo doesn't arrive earlier for TestClient
2020-01-20 17:35:44 +01:00
Bruno Windels
77d0a76186
fixup: another timeout
2020-01-20 14:52:34 +01:00
Bruno Windels
e51ba795f3
to make this work while using fake timers, don't use setTimeout
...
but instead use Promise.resolved() as then always runs in the next tick.
2020-01-20 13:56:39 +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
Bruno Windels
df6ebf83b4
fix tests
2019-12-09 17:45:01 +01:00
David Baker
a98e6964ef
Missed bits of callback renaming
2019-11-11 16:51:49 +00:00
David Baker
12627022d1
Convert sas verification test to callbacks
2019-11-07 15:18:16 +00:00
David Baker
49588da73d
Fix more tests
2019-10-29 19:39:31 +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
Hubert Chathi
d8e8dddd25
initial implementation of verification in DMs
2019-10-08 15:44:51 -04:00
Hubert Chathi
6a77df7b41
Merge branch 'develop' into dbkr/cross_signing
2019-06-05 12:48:17 -04:00
Hubert Chathi
4a9a1b40e9
initial implementation of secret storage and sharing
2019-06-04 15:04:45 -04:00
J. Ryan Stinnett
761806c678
Add support for class properties
...
This enables compiler and linting features to allow class properties like we do
in the React SDK.
2019-05-13 13:52:37 +01:00
Hubert Chathi
244e1b84f7
Initial implementation of key verification
2019-01-23 13:34:25 -05:00