diff options
Diffstat (limited to 'spec/frontend/organizations/shared/components/projects_view_spec.js')
-rw-r--r-- | spec/frontend/organizations/shared/components/projects_view_spec.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/frontend/organizations/shared/components/projects_view_spec.js b/spec/frontend/organizations/shared/components/projects_view_spec.js index 490b0c89348..3cc71927bfa 100644 --- a/spec/frontend/organizations/shared/components/projects_view_spec.js +++ b/spec/frontend/organizations/shared/components/projects_view_spec.js @@ -25,13 +25,20 @@ describe('ProjectsView', () => { newProjectPath: '/projects/new', }; + const defaultPropsData = { + listItemClass: 'gl-px-5', + }; + const createComponent = ({ mockResolvers = resolvers, propsData = {} } = {}) => { mockApollo = createMockApollo([], mockResolvers); wrapper = shallowMountExtended(ProjectsView, { apolloProvider: mockApollo, provide: defaultProvide, - propsData, + propsData: { + ...defaultPropsData, + ...propsData, + }, }); }; @@ -115,6 +122,7 @@ describe('ProjectsView', () => { expect(wrapper.findComponent(ProjectsList).props()).toEqual({ projects: formatProjects(organizationProjects.nodes), showProjectIcon: true, + listItemClass: defaultPropsData.listItemClass, }); }); }); |