fix language dependency in unit tests for ContributionMessagesListItem

This commit is contained in:
mahula 2022-10-06 18:23:54 +02:00
parent 40e505f6e5
commit e93e8e6b0a
2 changed files with 8 additions and 8 deletions

View File

@ -53,8 +53,8 @@ describe('ContributionMessagesListItem', () => {
})
it('has the message creation date', () => {
expect(wrapper.find('div.text-right.is-moderator > span:nth-child(3)').text()).toBe(
'Mon Aug 29 2022 12:23:27 GMT+0000 (Coordinated Universal Time)',
expect(wrapper.find('div.text-right.is-moderator > span:nth-child(3)').text()).toMatch(
'Mon Aug 29 2022 12:23:27 GMT+0000',
)
})
@ -113,8 +113,8 @@ describe('ContributionMessagesListItem', () => {
})
it('has the message creation date', () => {
expect(wrapper.find('div.is-not-moderator.text-left > span:nth-child(3)').text()).toBe(
'Mon Aug 29 2022 12:25:34 GMT+0000 (Coordinated Universal Time)',
expect(wrapper.find('div.is-not-moderator.text-left > span:nth-child(3)').text()).toMatch(
'Mon Aug 29 2022 12:25:34 GMT+0000',
)
})

View File

@ -105,8 +105,8 @@ describe('ContributionMessagesListItem', () => {
})
it('has the message creation date', () => {
expect(wrapper.find('div.is-moderator.text-left > span:nth-child(3)').text()).toBe(
'Mon Aug 29 2022 12:25:34 GMT+0000 (Coordinated Universal Time)',
expect(wrapper.find('div.is-moderator.text-left > span:nth-child(3)').text()).toMatch(
'Mon Aug 29 2022 12:25:34 GMT+0000',
)
})
@ -163,8 +163,8 @@ describe('ContributionMessagesListItem', () => {
})
it('has the message creation date', () => {
expect(wrapper.find('div.is-not-moderator.text-right > span:nth-child(3)').text()).toBe(
'Mon Aug 29 2022 12:23:27 GMT+0000 (Coordinated Universal Time)',
expect(wrapper.find('div.is-not-moderator.text-right > span:nth-child(3)').text()).toMatch(
'Mon Aug 29 2022 12:23:27 GMT+0000',
)
})