diff options
author | Phil Hughes <me@iamphill.com> | 2017-06-13 19:47:50 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-06-15 18:59:32 +0300 |
commit | 220ef24fa716a36858a798e5f706cc9c1a3d9751 (patch) | |
tree | 85cc39b409ec189628552ac05d19ea087faaeddf /spec | |
parent | a6582d247e14307673ad7c9823f4b47df5538670 (diff) |
Merge branch '33642-timeago-update' into 'master'
Remove js classes from vue component that are not needed in vue component
Closes #33642
See merge request !12133
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/vue_shared/components/time_ago_tooltip_spec.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/spec/javascripts/vue_shared/components/time_ago_tooltip_spec.js b/spec/javascripts/vue_shared/components/time_ago_tooltip_spec.js index bf28019ef24..f3b4adc0b70 100644 --- a/spec/javascripts/vue_shared/components/time_ago_tooltip_spec.js +++ b/spec/javascripts/vue_shared/components/time_ago_tooltip_spec.js @@ -22,7 +22,7 @@ describe('Time ago with tooltip component', () => { }).$mount(); expect(vm.$el.tagName).toEqual('TIME'); - expect(vm.$el.classList.contains('js-timeago')).toEqual(true); + expect(vm.$el.classList.contains('js-vue-timeago')).toEqual(true); expect( vm.$el.getAttribute('data-original-title'), ).toEqual(gl.utils.formatDate('2017-05-08T14:57:39.781Z')); @@ -44,17 +44,6 @@ describe('Time ago with tooltip component', () => { expect(vm.$el.getAttribute('data-placement')).toEqual('bottom'); }); - it('should render short format class', () => { - vm = new TimeagoTooltip({ - propsData: { - time: '2017-05-08T14:57:39.781Z', - shortFormat: true, - }, - }).$mount(); - - expect(vm.$el.classList.contains('js-short-timeago')).toEqual(true); - }); - it('should render provided html class', () => { vm = new TimeagoTooltip({ propsData: { |