element-web-Github/test/test-utils
Johannes Marbach abd39c61b1
Add support for MD / HTML in room topics (#8215)
* Add support for MD / HTML in room topics

Setting MD / HTML supported:
- /topic command
- Room settings overlay
- Space settings overlay

Display of MD / HTML supported:
- /topic command
- Room header
- Space home

Based on extensible events as defined in [MSC1767]

Fixes: vector-im/element-web#5180
Signed-off-by: Johannes Marbach <johannesm@element.io>

[MSC1767]: matrix-org/matrix-spec-proposals#1767

* Fix build error

* Add comment to explain origin of styles

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Empty commit to retrigger build

* Fix import grouping

* Fix useTopic test

* Add tests for HtmlUtils

* Add slash command test

* Add further serialize test

* Fix ternary formatting

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Add blank line

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Properly mock SettingsStore access

* Remove trailing space

* Assert on HTML content and add test for plain text in HTML parameter

* Appease the linter

* Fix JSDoc comment

* Fix toEqual call formatting

* Repurpose test for literal HTML case

* Empty commit to fix CI

Co-authored-by: Travis Ralston <travpc@gmail.com>
Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-06-07 14:20:32 -06:00
..
beacon.ts Live location sharing: move test utils into utils (#8365) 2022-04-19 16:47:19 +00:00
client.ts Unit test MessageActionBar (#8732) 2022-06-02 10:25:56 +02:00
index.ts Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
location.ts Enable forwarding static locations (#8553) 2022-05-10 16:21:20 +00:00
platform.ts
poll.ts test functional EventUtils (#8386) 2022-04-21 18:14:10 +02:00
room.ts Live location sharing: move test utils into utils (#8365) 2022-04-19 16:47:19 +00:00
test-utils.ts Add support for MD / HTML in room topics (#8215) 2022-06-07 14:20:32 -06:00
threads.ts Fix race conditions around threads (#8448) 2022-05-03 14:25:08 +01:00
utilities.ts Unit test MessageActionBar (#8732) 2022-06-02 10:25:56 +02:00
video.ts Proactively fix stuck devices in video rooms (#8587) 2022-05-16 16:54:08 -04:00
wrappers.tsx