diff --git a/app/javascript/components/reports-form/components/filters/component.spec.js b/app/javascript/components/reports-form/components/filters/component.spec.js index bf5240022f..13e6344201 100644 --- a/app/javascript/components/reports-form/components/filters/component.spec.js +++ b/app/javascript/components/reports-form/components/filters/component.spec.js @@ -212,10 +212,11 @@ describe(" - Component", () => { describe("and the selectedRecordType is reportable_service", () => { it("should render the default service filters", () => { let appliedFilters = []; + const componentProps = { ...props, allRecordForms: fromJS([ - { + FormSectionRecord({ id: 1, unique_id: "services", name: { en: "Services Section" }, @@ -224,7 +225,7 @@ describe(" - Component", () => { parent_form: "case", fields: [ FieldRecord({ - name: "nested_services", + name: "services_section", type: SUBFORM_SECTION, subform_section_id: FormSectionRecord({ fields: [ @@ -248,7 +249,7 @@ describe(" - Component", () => { }) }) ] - } + }) ]), indexes: [], setIndexes: filters => { @@ -260,7 +261,7 @@ describe(" - Component", () => { formattedMinimumReportableFields }; - mountedComponent(, initialState); + mountedComponent(); expect(appliedFilters.map(filter => filter.data.attribute)).toStrictEqual([ "status",