element-web/test/components/views
Eric Eastwood 2393510a7f
Fix getRelationsForEvent under TypeScript strict mode (#9558)
* Fix getRelationsForEvent tsc strictness

* Use shared type for GetRelationsForEvent

* Fix lint

* Add alternative type

* getRelationsForEvent is not required

* Relations are optional

* Reactions are optional

* We expect relations in these tests

* Add more protection if the eventID is not defined

* Allow null too

* Better test typing

* User ID is not necessary unless something is selected

* It's okay to [].includes(null)

* Null is as good as undefined here

* Null or undefined is good here

* We have some expectations for the tests

* The room and user can be undefined too

* Protec

* Reactions are optional

* Try match signatures

* Null or undefined

* More null or undefined

* Protec

* Fix typo (wrong variable)

* Remove optional params

See https://github.com/matrix-org/matrix-react-sdk/pull/9558#discussion_r1017515913

* Fix up last maaaaybe relevant lint

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-11-21 20:54:24 -07:00
..
audio_messages Extract PlaybackInterface (#9526) 2022-11-02 09:46:42 +01:00
avatars Fix missing avatar for show current profiles (#9563) 2022-11-11 16:02:01 +00:00
beacon Remove all usages of UNSAFE_* React methods (#9583) 2022-11-18 09:22:43 +00:00
beta Don't show feedback prompts when that UIFeature is disabled (#9305) 2022-09-22 15:08:14 +01:00
context_menus Close context menu when a modal is opened to prevent user getting stuck (#9560) 2022-11-09 15:33:09 +00:00
dialogs Migrate some tests to React Testing Library (#9584) 2022-11-18 09:16:11 +00:00
elements Remove all usages of UNSAFE_* React methods (#9583) 2022-11-18 09:22:43 +00:00
location Close context menu when a modal is opened to prevent user getting stuck (#9560) 2022-11-09 15:33:09 +00:00
messages Fix getRelationsForEvent under TypeScript strict mode (#9558) 2022-11-21 20:54:24 -07:00
right_panel Resilience fix for homeserver without thread notification support (#9565) 2022-11-10 18:01:19 +00:00
rooms sliding sync: add lazy-loading member support (#9530) 2022-11-18 19:05:00 +00:00
settings Device manager - add tooltip to device details toggle (#9594) 2022-11-21 08:24:56 +13:00
spaces Prevent useContextMenu isOpen from being true if the button ref goes away (#9418) 2022-10-17 17:42:04 +01:00
typography Optimise Jest run in CI (#9542) 2022-11-04 10:48:08 +00:00
voip Extract requestMediaPermissions (#9568) 2022-11-11 10:38:51 +01:00
Validation-test.ts Enable tsc alwaysStrict, strictBindCallApply, noImplicitThis (#9600) 2022-11-21 11:24:59 +00:00