Michael Telatynski
652b3a9208
Revert "Remove getCapabilities call for guest users ( #2100 )" ( #2107 )
2022-01-18 09:55:54 +00:00
Michael Telatynski
2d9c938765
Support cancelling events whilst they are in status = ENCRYPTING ( #2095 )
2022-01-11 15:03:33 +00:00
Germain
bd47667e63
Remove getCapabilities call for guest users ( #2100 )
2022-01-11 12:50:10 +00:00
Germain
cfd865bf8b
Fetch server capabilities during client initialisation ( #2093 )
2022-01-11 11:53:30 +00:00
Michael Telatynski
5da562fa6f
Stop encrypting redactions as it isn't spec compliant ( #2098 )
2022-01-10 17:02:11 +00:00
Travis Ralston
4e2ee3b3a8
It helps to fix the other tests too
2021-08-11 15:18:24 -06:00
Travis Ralston
1f9fab9a0c
Fix conditional on returning file tree spaces
...
If a tree space was deleted then it'll still hold a Room object for us, which is not much help if we're effectively trying to get the joined trees.
2021-08-11 15:11:13 -06:00
Travis Ralston
d7b23a8634
liiiinttteeerrrr
2021-06-14 13:37:19 -06:00
Travis Ralston
6db7972f04
preset
2021-06-14 13:35:20 -06:00
Travis Ralston
e41a2beb65
de-lint
2021-06-09 22:09:26 -06:00
Travis Ralston
9084b4e7aa
Early implementation of MSC3089 (file trees)
...
MSC: https://github.com/matrix-org/matrix-doc/pull/3089
Includes part of MSC3088 (room subtyping): https://github.com/matrix-org/matrix-doc/pull/3088
The NamespacedValue stuff is borrowed from the Extensible Events implementation PR in the react-sdk as a useful thing to put here. When/if the MSCs become stable, we'd convert the values to enums and drop the constants (or keep them for migration purposes, but switch to stable).
This flags the whole thing as unstable because it's highly subject to change.
2021-06-08 14:43:20 -06:00
Travis Ralston
9156bed961
Tests pass 2
2021-06-02 13:42:20 -06: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
tzyl
f6e8048d9e
Expose getPresence endpoint
2021-01-18 10:17:46 +00:00
Travis Ralston
95c2c1643e
Remove "source-map-support" from tests because it makes sourcemaps worse
...
Now that we're pointing at `src/` for tests, we can stop trying to load source maps from random places. With this dependency used, source maps are off by a few lines.
2019-12-17 15:45:15 -07:00
Travis Ralston
f952f6742f
Remove ancient "use strict" annotations
...
We don't need these anymore. Theoretically this commit could go to develop, but for safety it's going to `travis/sourcemaps` first.
2019-12-17 15:43:02 -07: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
4a47867e49
Down to two test failures
2019-12-04 19:17:58 +00:00
Michael Telatynski
64bf145e4b
Replace rest of defers
2019-12-02 22:34:46 +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
Michael Telatynski
b004d1602d
Remove deprecated authedRequestWithPrefix and requestWithPrefix
...
replacing as documented with authedRequest
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-07-29 12:25:38 +01:00
Janith Kasun
de8063a43a
Merge branch 'develop' into loglevel-extend
2019-05-19 09:40:38 +05:30
jkasun
a73dabcb67
Console logging to loglevel
2019-05-19 09:29:40 +05:30
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
Bruno Windels
ba39b64ced
re-enable test
2018-09-26 18:00:40 +01:00
Bruno Windels
2560ba2980
dont clear the store if its a brand new one
2018-09-26 10:37:52 +01:00
Bruno Windels
1fd8c43d94
fix tests
2018-09-25 18:50:09 +01:00
Bruno Windels
1239485b30
fix test
2018-08-30 15:42:15 +02:00
David Baker
16c062c069
Start first incremental sync request early ( #629 )
...
* Start first incremental sync request early
So it can run while we process our sync data.
2018-03-16 15:22:06 +00:00
David Baker
a0578efeb9
fix tests
2018-03-08 13:52:48 +00:00
Richard van der Hoff
cfffbc4a09
replace q method calls with bluebird ones
...
```
find src spec -name '*.js' |
xargs perl -i -pe 's/q\.(all|defer|reject|delay|try)\(/Promise.$1(/'
```
2017-07-12 23:33:55 +01:00
Richard van der Hoff
a5d3dd942e
q(...) -> Promise.resolve
...
```
find src spec -name '*.js' |
xargs perl -i -pe 's/\bq(\([^(]*\))/Promise.resolve$1/'
```
2017-07-12 23:32:28 +01:00
Richard van der Hoff
b96062b6de
replace imports of q with bluebird
...
```
find src spec -name '*.js' |
xargs perl -i -pe 'if (/require\(.q.\)/) { $_ = "import Promise from '\''bluebird'\'';\n"; }'
find src spec -name '*.js' |
xargs perl -i -pe 'if (/import q/) { $_ = "import Promise from '\''bluebird'\'';\n"; }'
```
2017-07-12 23:32:28 +01:00
David Baker
bf6490739d
Fix tests
...
Make setSyncData return promises in a few places and fix all the
places the tests assume that /sync being flushed == the sync
result being processed.
2017-04-06 15:20:50 +01:00
David Baker
b72b38b0a3
Add missed methods to stub/memory store
...
and fix tests
2017-04-03 17:45:58 +01:00
Kegan Dougal
5aa146f0a6
Add function to UTs
2017-02-17 10:41:04 +00:00
Kegan Dougal
c93c8a79b7
Add startup() to store API
2017-02-17 10:14:12 +00:00
Kegan Dougal
9a9646d012
Review comments
2017-02-16 11:28:51 +00:00
Kegan Dougal
cc1daa5a54
Fix tests due to API breakage
2017-02-09 17:32:23 +00:00
Richard van der Hoff
bd226d94d8
Switch from jasmine to mocha + expect + lolex
...
Much of this transformation has been done automatically:
* add expect import to each file
* replace `not.to` with `toNot`
* replace `to[Not]Be{Undefined,Null}` with equivalents
* replace `jasmine.createSpy(...)` with `except.createSpy`, and `andCallFake`
with `andCall`
Also:
* replace `jasmine.createSpyObj` with manual alternatives
* replace `jasmine.Clock` with `lolex`
2017-02-08 14:32:37 +00:00
Richard van der Hoff
80d0aadbd0
Install source-map-support in each test
...
This makes exception traces use the source map, which is much more helpful when
debugging.
2017-02-07 22:57:09 +00:00
David Baker
423175f539
eslint --fix for dangley commas on function calls
2017-01-20 16:12:02 +00:00
David Baker
7bca05af64
eslint ---fix for prefer-const
2017-01-19 17:42:10 +00:00
Kegan Dougal
5f28bc4468
Fix errors (line limits)
2017-01-13 10:55:17 +00:00
Kegan Dougal
7ed65407e6
Pass through eslint --fix
2017-01-13 10:49:32 +00:00
David Baker
e057956ede
Add google eslint rules as a base
...
Remove some we don't care about. Set some other ones we do care
about but don't currently adhere to to warn. Set the max warnings
threshold to the current number of warnings, so we don't introduce
more of them. Fix a bunch of legit lint errors and add exceptions
to various places in the test code that does funny things with
'this'.
2017-01-12 14:35:58 +00:00
David Baker
09255a52f7
Merge branch 'release-v0.6.3'
2016-10-12 11:27:05 +01:00
Richard van der Hoff
892ca56808
Merge pull request #228 from pik/bug-invalid-filter
...
Fix sync breaking when an invalid filterId is in localStorage
2016-10-09 20:35:09 +01:00