diff options
Diffstat (limited to 'spec/frontend/frequent_items/components')
-rw-r--r-- | spec/frontend/frequent_items/components/app_spec.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/spec/frontend/frequent_items/components/app_spec.js b/spec/frontend/frequent_items/components/app_spec.js index 32c66c0d288..c201bbf4af2 100644 --- a/spec/frontend/frequent_items/components/app_spec.js +++ b/spec/frontend/frequent_items/components/app_spec.js @@ -145,11 +145,16 @@ describe('Frequent Items App Component', () => { expect(findFrequentItemsList().props()).toEqual( expect.objectContaining({ items: mockSearchedProjects.data.map( - ({ avatar_url, web_url, name_with_namespace, ...item }) => ({ + ({ + avatar_url: avatarUrl, + web_url: webUrl, + name_with_namespace: namespace, + ...item + }) => ({ ...item, - avatarUrl: avatar_url, - webUrl: web_url, - namespace: name_with_namespace, + avatarUrl, + webUrl, + namespace, }), ), namespace: TEST_NAMESPACE, |