Commit d5e91071 authored by George Tsiolis's avatar George Tsiolis

Update MrWidgetAuthorTime and MRWidgetMerged spec

parent 927d2459
...@@ -34,7 +34,7 @@ describe('MrWidgetAuthorTime', () => { ...@@ -34,7 +34,7 @@ describe('MrWidgetAuthorTime', () => {
}); });
it('renders provided time', () => { it('renders provided time', () => {
expect(vm.$el.querySelector('time').getAttribute('title')).toEqual('2017-03-23T23:02:00.807Z'); expect(vm.$el.querySelector('time').getAttribute('data-original-title')).toEqual('2017-03-23T23:02:00.807Z');
expect(vm.$el.querySelector('time').textContent.trim()).toEqual('12 hours ago'); expect(vm.$el.querySelector('time').textContent.trim()).toEqual('12 hours ago');
}); });
}); });
...@@ -186,7 +186,7 @@ describe('MRWidgetMerged', () => { ...@@ -186,7 +186,7 @@ describe('MRWidgetMerged', () => {
it('should use mergedEvent mergedAt as tooltip title', () => { it('should use mergedEvent mergedAt as tooltip title', () => {
expect( expect(
vm.$el.querySelector('time').getAttribute('title'), vm.$el.querySelector('time').getAttribute('data-original-title'),
).toBe('Jan 24, 2018 1:02pm GMT+0000'); ).toBe('Jan 24, 2018 1:02pm GMT+0000');
}); });
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment