61e3c38b19
* add disabler elative dates setting Signed-off-by: Kerry Archibald <kerrya@element.io> * test existing DateSeparator Signed-off-by: Kerry Archibald <kerrya@element.io> * use full date format when TimelineDisableRelativeDates is truthy Signed-off-by: Kerry Archibald <kerrya@element.io> * add comment Signed-off-by: Kerry Archibald <kerrya@element.io> * flip timelineDisableRelativeDates -> timelineEnableRelativeDates to fit convention Signed-off-by: Kerry Archibald <kerrya@element.io> * mock date constructor in test Signed-off-by: Kerry Archibald <kerrya@element.io>
32 lines
567 B
Text
32 lines
567 B
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`DateSeparator renders the date separator correctly 1`] = `
|
|
<Wrapper
|
|
now="2021-12-17T08:09:00.000Z"
|
|
ts={1639728540000}
|
|
>
|
|
<DateSeparator
|
|
now="2021-12-17T08:09:00.000Z"
|
|
ts={1639728540000}
|
|
>
|
|
<h2
|
|
aria-label="Today"
|
|
className="mx_DateSeparator"
|
|
role="separator"
|
|
tabIndex={-1}
|
|
>
|
|
<hr
|
|
role="none"
|
|
/>
|
|
<div
|
|
aria-hidden="true"
|
|
>
|
|
Today
|
|
</div>
|
|
<hr
|
|
role="none"
|
|
/>
|
|
</h2>
|
|
</DateSeparator>
|
|
</Wrapper>
|
|
`;
|