Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.js8
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', () => {