This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 833
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate some tests to React Testing Library (#9584)
- Loading branch information
Germain
authored
Nov 18, 2022
1 parent
ef548a4
commit 38dbe8e
Showing
12 changed files
with
315 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 23 additions & 1 deletion
24
test/components/views/messages/__snapshots__/MVideoBody-test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`MVideoBody does not crash when given a portrait image 1`] = `"<span class="mx_MVideoBody"><div class="mx_MVideoBody_container" style="max-width: 182px; max-height: 324px;"><video class="mx_MVideoBody" controls="" controlslist="nodownload" preload="none" poster="data:image/png;base64,00"></video><div style="width: 182px; height: 324px;"></div></div></span>"`; | ||
exports[`MVideoBody does not crash when given a portrait image 1`] = ` | ||
<DocumentFragment> | ||
<span | ||
class="mx_MVideoBody" | ||
> | ||
<div | ||
class="mx_MVideoBody_container" | ||
style="max-width: 182px; max-height: 324px;" | ||
> | ||
<video | ||
class="mx_MVideoBody" | ||
controls="" | ||
controlslist="nodownload" | ||
poster="data:image/png;base64,00" | ||
preload="none" | ||
/> | ||
<div | ||
style="width: 182px; height: 324px;" | ||
/> | ||
</div> | ||
</span> | ||
</DocumentFragment> | ||
`; |
Oops, something went wrong.