diff options
Diffstat (limited to 'spec/frontend/vue_shared/issuable/list/components')
-rw-r--r-- | spec/frontend/vue_shared/issuable/list/components/issuable_item_spec.js | 18 | ||||
-rw-r--r-- | spec/frontend/vue_shared/issuable/list/components/issuable_list_root_spec.js | 12 |
2 files changed, 12 insertions, 18 deletions
diff --git a/spec/frontend/vue_shared/issuable/list/components/issuable_item_spec.js b/spec/frontend/vue_shared/issuable/list/components/issuable_item_spec.js index f55d3156581..e1c6020686c 100644 --- a/spec/frontend/vue_shared/issuable/list/components/issuable_item_spec.js +++ b/spec/frontend/vue_shared/issuable/list/components/issuable_item_spec.js @@ -543,24 +543,6 @@ describe('IssuableItem', () => { }); }); - describe('when issuable was created within the past 24 hours', () => { - it('renders issuable card with a recently-created style', () => { - wrapper = createComponent({ - issuable: { ...mockIssuable, createdAt: '2020-12-10T12:34:56' }, - }); - - expect(wrapper.classes()).toContain('today'); - }); - }); - - describe('when issuable was created earlier than the past 24 hours', () => { - it('renders issuable card without a recently-created style', () => { - wrapper = createComponent({ issuable: { ...mockIssuable, createdAt: '2020-12-09' } }); - - expect(wrapper.classes()).not.toContain('today'); - }); - }); - describe('scoped labels', () => { describe.each` description | labelPosition | hasScopedLabelsFeature | scoped diff --git a/spec/frontend/vue_shared/issuable/list/components/issuable_list_root_spec.js b/spec/frontend/vue_shared/issuable/list/components/issuable_list_root_spec.js index 0c53f599d55..371844e66f4 100644 --- a/spec/frontend/vue_shared/issuable/list/components/issuable_list_root_spec.js +++ b/spec/frontend/vue_shared/issuable/list/components/issuable_list_root_spec.js @@ -322,6 +322,18 @@ describe('IssuableListRoot', () => { }); }); + describe('showFilteredSearchFriendlyText prop', () => { + describe.each([true, false])('when %s', (showFilteredSearchFriendlyText) => { + it('passes its value to FilteredSearchBar', () => { + wrapper = createComponent({ props: { showFilteredSearchFriendlyText } }); + + expect(findFilteredSearchBar().props('showFriendlyText')).toBe( + showFilteredSearchFriendlyText, + ); + }); + }); + }); + describe('alert', () => { const error = 'oopsie!'; |