diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /spec/frontend/filtered_search/components/recent_searches_dropdown_content_spec.js | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/frontend/filtered_search/components/recent_searches_dropdown_content_spec.js')
-rw-r--r-- | spec/frontend/filtered_search/components/recent_searches_dropdown_content_spec.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/frontend/filtered_search/components/recent_searches_dropdown_content_spec.js b/spec/frontend/filtered_search/components/recent_searches_dropdown_content_spec.js index c0851096d8e..158f70f7d47 100644 --- a/spec/frontend/filtered_search/components/recent_searches_dropdown_content_spec.js +++ b/spec/frontend/filtered_search/components/recent_searches_dropdown_content_spec.js @@ -57,7 +57,11 @@ describe('Recent Searches Dropdown Content', () => { beforeEach(() => { createComponent({ - items: ['foo', 'author:@root label:~foo bar'], + items: [ + 'foo', + 'author:@root label:~foo bar', + [{ type: 'author_username', value: { data: 'toby', operator: '=' } }], + ], isLocalStorageAvailable: true, }); }); @@ -76,7 +80,7 @@ describe('Recent Searches Dropdown Content', () => { }); it('renders a correct amount of dropdown items', () => { - expect(findDropdownItems()).toHaveLength(2); + expect(findDropdownItems()).toHaveLength(2); // Ignore non-string recent item }); it('expect second dropdown to have 2 tokens', () => { |