diff --git a/admin/src/components/ContributionMessages/slots/ContributionMessagesListItem.spec.js b/admin/src/components/ContributionMessages/slots/ContributionMessagesListItem.spec.js index bb116afbe..b8aaba502 100644 --- a/admin/src/components/ContributionMessages/slots/ContributionMessagesListItem.spec.js +++ b/admin/src/components/ContributionMessages/slots/ContributionMessagesListItem.spec.js @@ -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', ) }) diff --git a/frontend/src/components/ContributionMessages/ContributionMessagesListItem.spec.js b/frontend/src/components/ContributionMessages/ContributionMessagesListItem.spec.js index 5d5185e0f..7504854d0 100644 --- a/frontend/src/components/ContributionMessages/ContributionMessagesListItem.spec.js +++ b/frontend/src/components/ContributionMessages/ContributionMessagesListItem.spec.js @@ -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', ) })