Skip to content

Commit

Permalink
updated snapshots for timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
evwilkin committed Mar 26, 2024
1 parent 04c7b3b commit c398986
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
32 changes: 24 additions & 8 deletions src/app/Dashboard/CardEventsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export const CardEventsView: React.FunctionComponent = () => {
date={new Date('2023-06-17T14:02:00Z')}
dateFormat={TimestampFormat.medium}
timeFormat={TimestampFormat.short}
/>
>
Jun 17, 11:02 am
</Timestamp>
</DescriptionListDescription>
</DescriptionListGroup>
<DescriptionListGroup>
Expand All @@ -112,7 +114,9 @@ export const CardEventsView: React.FunctionComponent = () => {
date={new Date('2023-06-17T14:13:00Z')}
dateFormat={TimestampFormat.medium}
timeFormat={TimestampFormat.short}
/>
>
Jun 17, 11:13 am
</Timestamp>
</DescriptionListDescription>
</DescriptionListGroup>
<DescriptionListGroup>
Expand All @@ -132,7 +136,9 @@ export const CardEventsView: React.FunctionComponent = () => {
date={new Date('2023-06-17T13:59:00Z')}
dateFormat={TimestampFormat.medium}
timeFormat={TimestampFormat.short}
/>
>
Jun 17, 10:59 am
</Timestamp>
</DescriptionListDescription>
</DescriptionListGroup>
<DescriptionListGroup>
Expand All @@ -154,7 +160,9 @@ export const CardEventsView: React.FunctionComponent = () => {
date={new Date('2023-06-17T13:45:00Z')}
dateFormat={TimestampFormat.medium}
timeFormat={TimestampFormat.short}
/>
>
Jun 17, 10:45 am
</Timestamp>
</DescriptionListDescription>
</DescriptionListGroup>
<DescriptionListGroup>
Expand All @@ -176,7 +184,9 @@ export const CardEventsView: React.FunctionComponent = () => {
date={new Date('2023-06-17T13:33:00Z')}
dateFormat={TimestampFormat.medium}
timeFormat={TimestampFormat.short}
/>
>
Jun 17, 10:33 am
</Timestamp>
</DescriptionListDescription>
</DescriptionListGroup>
<DescriptionListGroup>
Expand All @@ -198,7 +208,9 @@ export const CardEventsView: React.FunctionComponent = () => {
date={new Date('2023-06-17T13:33:00Z')}
dateFormat={TimestampFormat.medium}
timeFormat={TimestampFormat.short}
/>
>
Jun 17, 10:33 am
</Timestamp>
</DescriptionListDescription>
</DescriptionListGroup>
<DescriptionListGroup>
Expand All @@ -220,7 +232,9 @@ export const CardEventsView: React.FunctionComponent = () => {
date={new Date('2023-06-17T13:31:00Z')}
dateFormat={TimestampFormat.medium}
timeFormat={TimestampFormat.short}
/>
>
Jun 17, 10:31 am
</Timestamp>
</DescriptionListDescription>
</DescriptionListGroup>
<DescriptionListGroup>
Expand All @@ -242,7 +256,9 @@ export const CardEventsView: React.FunctionComponent = () => {
date={new Date('2023-06-17T13:30:00Z')}
dateFormat={TimestampFormat.medium}
timeFormat={TimestampFormat.short}
/>
>
Jun 17, 10:30 am
</Timestamp>
</DescriptionListDescription>
</DescriptionListGroup>
</DescriptionList>
Expand Down
16 changes: 8 additions & 8 deletions src/app/__snapshots__/app.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2811,7 +2811,7 @@ exports[`App tests should render default App component 1`] = `
class="pf-v5-c-timestamp__text"
datetime="2023-06-17T14:02:00.000Z"
>
Jun 17, 2023, 10:02 AM
Jun 17, 11:02 am
</time>
</span>
</div>
Expand Down Expand Up @@ -2886,7 +2886,7 @@ exports[`App tests should render default App component 1`] = `
class="pf-v5-c-timestamp__text"
datetime="2023-06-17T14:13:00.000Z"
>
Jun 17, 2023, 10:13 AM
Jun 17, 11:13 am
</time>
</span>
</div>
Expand Down Expand Up @@ -2955,7 +2955,7 @@ exports[`App tests should render default App component 1`] = `
class="pf-v5-c-timestamp__text"
datetime="2023-06-17T13:59:00.000Z"
>
Jun 17, 2023, 9:59 AM
Jun 17, 10:59 am
</time>
</span>
</div>
Expand Down Expand Up @@ -3030,7 +3030,7 @@ exports[`App tests should render default App component 1`] = `
class="pf-v5-c-timestamp__text"
datetime="2023-06-17T13:45:00.000Z"
>
Jun 17, 2023, 9:45 AM
Jun 17, 10:45 am
</time>
</span>
</div>
Expand Down Expand Up @@ -3105,7 +3105,7 @@ exports[`App tests should render default App component 1`] = `
class="pf-v5-c-timestamp__text"
datetime="2023-06-17T13:33:00.000Z"
>
Jun 17, 2023, 9:33 AM
Jun 17, 10:33 am
</time>
</span>
</div>
Expand Down Expand Up @@ -3180,7 +3180,7 @@ exports[`App tests should render default App component 1`] = `
class="pf-v5-c-timestamp__text"
datetime="2023-06-17T13:33:00.000Z"
>
Jun 17, 2023, 9:33 AM
Jun 17, 10:33 am
</time>
</span>
</div>
Expand Down Expand Up @@ -3255,7 +3255,7 @@ exports[`App tests should render default App component 1`] = `
class="pf-v5-c-timestamp__text"
datetime="2023-06-17T13:31:00.000Z"
>
Jun 17, 2023, 9:31 AM
Jun 17, 10:31 am
</time>
</span>
</div>
Expand Down Expand Up @@ -3330,7 +3330,7 @@ exports[`App tests should render default App component 1`] = `
class="pf-v5-c-timestamp__text"
datetime="2023-06-17T13:30:00.000Z"
>
Jun 17, 2023, 9:30 AM
Jun 17, 10:30 am
</time>
</span>
</div>
Expand Down

0 comments on commit c398986

Please sign in to comment.