mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-02 14:47:55 +02:00
fix test
This commit is contained in:
parent
b05f2419c5
commit
3501411a61
@ -19,7 +19,7 @@ exports[`components/cardDetail/comment return comment 1`] = `
|
||||
</div>
|
||||
<div
|
||||
class="octo-tooltip tooltip-top"
|
||||
data-tooltip="October 01, 2020 at 12:00 AM"
|
||||
data-tooltip="October 01, 2020, 12:00 AM"
|
||||
>
|
||||
<div
|
||||
class="comment-date"
|
||||
@ -147,7 +147,7 @@ exports[`components/cardDetail/comment return comment and delete comment 1`] = `
|
||||
</div>
|
||||
<div
|
||||
class="octo-tooltip tooltip-top"
|
||||
data-tooltip="October 01, 2020 at 12:00 AM"
|
||||
data-tooltip="October 01, 2020, 12:00 AM"
|
||||
>
|
||||
<div
|
||||
class="comment-date"
|
||||
@ -275,7 +275,7 @@ exports[`components/cardDetail/comment return comment readonly 1`] = `
|
||||
</div>
|
||||
<div
|
||||
class="octo-tooltip tooltip-top"
|
||||
data-tooltip="October 01, 2020 at 12:00 AM"
|
||||
data-tooltip="October 01, 2020, 12:00 AM"
|
||||
>
|
||||
<div
|
||||
class="comment-date"
|
||||
@ -323,7 +323,7 @@ exports[`components/cardDetail/comment return guest comment 1`] = `
|
||||
</div>
|
||||
<div
|
||||
class="octo-tooltip tooltip-top"
|
||||
data-tooltip="October 01, 2020 at 12:00 AM"
|
||||
data-tooltip="October 01, 2020, 12:00 AM"
|
||||
>
|
||||
<div
|
||||
class="comment-date"
|
||||
@ -460,7 +460,7 @@ exports[`components/cardDetail/comment return guest comment and delete comment 1
|
||||
</div>
|
||||
<div
|
||||
class="octo-tooltip tooltip-top"
|
||||
data-tooltip="October 01, 2020 at 12:00 AM"
|
||||
data-tooltip="October 01, 2020, 12:00 AM"
|
||||
>
|
||||
<div
|
||||
class="comment-date"
|
||||
@ -597,7 +597,7 @@ exports[`components/cardDetail/comment return guest comment readonly 1`] = `
|
||||
</div>
|
||||
<div
|
||||
class="octo-tooltip tooltip-top"
|
||||
data-tooltip="October 01, 2020 at 12:00 AM"
|
||||
data-tooltip="October 01, 2020, 12:00 AM"
|
||||
>
|
||||
<div
|
||||
class="comment-date"
|
||||
|
@ -5,7 +5,7 @@ exports[`properties/updatedTime should match snapshot 1`] = `
|
||||
<div
|
||||
class="UpdatedTime octo-propertyvalue octo-propertyvalue--readonly"
|
||||
>
|
||||
June 15, 2021 at 4:22 PM
|
||||
June 15, 2021, 4:22 PM
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
@ -154,14 +154,14 @@ describe('utils', () => {
|
||||
const currentYear = new Date().getFullYear()
|
||||
const date = new Date(currentYear, 6, 9, 15, 20)
|
||||
const actual = Utils.displayDateTime(date, intl)
|
||||
expect(actual).toBe('July 09 at 3:20 PM')
|
||||
expect(actual).toBe('July 09, 3:20 PM')
|
||||
})
|
||||
|
||||
it('should show month, day, year and time for previous year', () => {
|
||||
const currentYear = new Date().getFullYear()
|
||||
const previousYear = currentYear - 1
|
||||
const date = new Date(previousYear, 6, 9, 5, 35)
|
||||
expect(Utils.displayDateTime(date, intl)).toBe(`July 09, ${previousYear} at 5:35 AM`)
|
||||
expect(Utils.displayDateTime(date, intl)).toBe(`July 09, ${previousYear}, 5:35 AM`)
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user