diff options
Diffstat (limited to 'spec/frontend/pipelines/time_ago_spec.js')
-rw-r--r-- | spec/frontend/pipelines/time_ago_spec.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/spec/frontend/pipelines/time_ago_spec.js b/spec/frontend/pipelines/time_ago_spec.js index 5afe91c4784..d2aa340a980 100644 --- a/spec/frontend/pipelines/time_ago_spec.js +++ b/spec/frontend/pipelines/time_ago_spec.js @@ -65,22 +65,11 @@ describe('Timeago component', () => { expect(time.exists()).toBe(true); }); - it('should display calendar icon by default', () => { + it('should display calendar icon', () => { createComponent({ duration: 0, finished_at: '2017-04-26T12:40:23.277Z' }); expect(findCalendarIcon().exists()).toBe(true); }); - - it('should hide calendar icon if correct prop is passed', () => { - createComponent( - { duration: 0, finished_at: '2017-04-26T12:40:23.277Z' }, - { - displayCalendarIcon: false, - }, - ); - - expect(findCalendarIcon().exists()).toBe(false); - }); }); describe('without finishedTime', () => { |