3c52ba0c92
* Use Intl to generate better internationalised date formats * Get `Yesterday` and `Today` from Intl also * Correct capitalisation blunder * Fix formatTime include weekday * Iterate * Fix tests * use jest setSystemTime * Discard changes to cypress/e2e/settings/general-user-settings-tab.spec.ts * Discard changes to res/css/_components.pcss * Discard changes to res/css/views/elements/_LanguageDropdown.pcss * Discard changes to src/components/views/elements/LanguageDropdown.tsx * Add docs & tests for getDaysArray & getMonthsArray * Discard changes to test/components/structures/__snapshots__/MatrixChat-test.tsx.snap * Consolidate consts * Improve testing & documentation * Update snapshot * Apply suggestions from code review Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Iterate * Clarify comments * Update src/DateUtils.ts Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Specify hourCycle * Discard changes to test/components/views/settings/devices/DeviceDetails-test.tsx * Update comments --------- Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
66 lines
1.5 KiB
Text
66 lines
1.5 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<PinnedEventTile /> should render pinned event 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_PinnedEventTile"
|
|
>
|
|
<span
|
|
class="mx_BaseAvatar mx_PinnedEventTile_senderAvatar"
|
|
role="presentation"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="mx_BaseAvatar_initial"
|
|
style="font-size: 15.600000000000001px; width: 24px; line-height: 24px;"
|
|
>
|
|
A
|
|
</span>
|
|
<img
|
|
alt=""
|
|
aria-hidden="true"
|
|
class="mx_BaseAvatar_image"
|
|
data-testid="avatar-img"
|
|
loading="lazy"
|
|
src="data:image/png;base64,00"
|
|
style="width: 24px; height: 24px;"
|
|
/>
|
|
</span>
|
|
<span
|
|
class="mx_PinnedEventTile_sender mx_Username_color6"
|
|
>
|
|
@alice:server.org
|
|
</span>
|
|
<div
|
|
class="mx_PinnedEventTile_message"
|
|
>
|
|
<div
|
|
class="mx_MTextBody mx_EventTile_content"
|
|
>
|
|
<span
|
|
class="mx_EventTile_body"
|
|
dir="auto"
|
|
>
|
|
First pinned message
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_PinnedEventTile_footer"
|
|
>
|
|
<span
|
|
class="mx_MessageTimestamp mx_PinnedEventTile_timestamp"
|
|
>
|
|
Thu, Jan 1, 1970, 00:00
|
|
</span>
|
|
<div
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
View message
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|