mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
d876e4482b
This test assumed that `/sync` would be called immediately after rendering `<MatrixChat />` but this isn't true in an IndexedDB world: it bounces via `store.startup()` first. It looks like the tests resolve this by adding `q.delay(1)` so that's what I've done: in the future it would be better to extend `HttpBackend` to have a `waitFor(req) Promise` function so we can removing timing from the tests. |
||
---|---|---|
.. | ||
app-tests | ||
unit-tests/notifications | ||
.eslintrc.js | ||
all-tests.js | ||
mock-request.js | ||
skin-sdk.js | ||
test-utils.js |