Fix invalid attribute used for time-ago-tooltip component
This commit is contained in:
parent
d540d43e2d
commit
cc81a40dcc
|
@ -37,7 +37,7 @@ export default {
|
|||
Edited
|
||||
<time-ago-tooltip
|
||||
v-if="updatedAt"
|
||||
placement="bottom"
|
||||
tooltip-placement="bottom"
|
||||
:time="updatedAt"
|
||||
/>
|
||||
<span
|
||||
|
|
|
@ -46,4 +46,14 @@ describe('edited', () => {
|
|||
expect(editedComponent.$el.querySelector('.author_link')).toBeFalsy();
|
||||
expect(editedComponent.$el.querySelector('time')).toBeTruthy();
|
||||
});
|
||||
|
||||
it('renders time ago tooltip at the bottom', () => {
|
||||
const editedComponent = new EditedComponent({
|
||||
propsData: {
|
||||
updatedAt: '2017-05-15T12:31:04.428Z',
|
||||
},
|
||||
}).$mount();
|
||||
|
||||
expect(editedComponent.$el.querySelector('time').dataset.placement).toEqual('bottom');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue