diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /spec/frontend/lib/utils/datetime_utility_spec.js | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'spec/frontend/lib/utils/datetime_utility_spec.js')
-rw-r--r-- | spec/frontend/lib/utils/datetime_utility_spec.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/frontend/lib/utils/datetime_utility_spec.js b/spec/frontend/lib/utils/datetime_utility_spec.js index b0b0b028761..6092b44720f 100644 --- a/spec/frontend/lib/utils/datetime_utility_spec.js +++ b/spec/frontend/lib/utils/datetime_utility_spec.js @@ -643,16 +643,15 @@ describe('localTimeAgo', () => { }); it.each` - timeagoArg | title | dataOriginalTitle - ${false} | ${'some time'} | ${null} - ${true} | ${''} | ${'Feb 18, 2020 10:22pm GMT+0000'} - `('converts $seconds seconds to $approximation', ({ timeagoArg, title, dataOriginalTitle }) => { + timeagoArg | title + ${false} | ${'some time'} + ${true} | ${'Feb 18, 2020 10:22pm GMT+0000'} + `('converts $seconds seconds to $approximation', ({ timeagoArg, title }) => { const element = document.querySelector('time'); datetimeUtility.localTimeAgo($(element), timeagoArg); jest.runAllTimers(); - expect(element.getAttribute('data-original-title')).toBe(dataOriginalTitle); expect(element.getAttribute('title')).toBe(title); }); }); |