riot-web/test/utils
Clark Fischer 53a9b6447b
Fix MessageEditHistoryDialog crashing on complex input (#10018)
* noImplicitAny fixes for MessageDiffUtils

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Add tests for MessageDiffUtils

Adds mostly snapshot tests for MessageDiffUtils to guarantee consistent
behavior.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Strict mode fixes for MessageDiffUtils

Gets `MessageDiffUtils` to pass under `tsc --strict`.

Fixes https://github.com/vector-im/element-web/issues/23665 - no longer errors,
though it still isn't correct.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Remove obsolete DiffDOM workaround

Workaround is no longer necessary as of DiffDOM 4.2.1

See https://github.com/fiduswriter/diffDOM/issues/90

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

---------

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>
2023-01-31 09:55:20 +00:00
..
__snapshots__ Fix MessageEditHistoryDialog crashing on complex input (#10018) 2023-01-31 09:55:20 +00:00
beacon
device
dm
exportUtils
localRoom
location
media
permalinks
room
validate
AnimationUtils-test.ts
DateUtils-test.ts
EventRenderingUtils-test.ts
EventUtils-test.ts
Feedback-test.ts
FixedRollingArray-test.ts
MegolmExportEncryption-test.ts
MessageDiffUtils-test.tsx Fix MessageEditHistoryDialog crashing on complex input (#10018) 2023-01-31 09:55:20 +00:00
MultiInviter-test.ts
ShieldUtils-test.ts
Singleflight-test.ts
SnakedObject-test.ts
WidgetUtils-test.ts
arrays-test.ts
colour-test.ts
connection-test.ts
createVoiceMessageContent-test.ts
direct-messages-test.ts
enums-test.ts
export-test.tsx
generate-megolm-test-vectors.py
iterables-test.ts
leave-behaviour-test.ts
local-room-test.ts
maps-test.ts
membership-test.ts
notifications-test.ts
numbers-test.ts
objects-test.ts
pillify-test.tsx
sets-test.ts
stringOrderField-test.ts
tooltipify-test.tsx