Skip to content

Commit

Permalink
Merged in r2-3142-report-services (pull request #7018)
Browse files Browse the repository at this point in the history
R2-3142: Fixing broken unit test
  • Loading branch information
jtoliver-quoin committed Dec 11, 2024
2 parents e07ee8d + c1a96c0 commit 1051b91
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,11 @@ describe("<ReportFilters /> - 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" },
Expand All @@ -224,7 +225,7 @@ describe("<ReportFilters /> - Component", () => {
parent_form: "case",
fields: [
FieldRecord({
name: "nested_services",
name: "services_section",
type: SUBFORM_SECTION,
subform_section_id: FormSectionRecord({
fields: [
Expand All @@ -248,7 +249,7 @@ describe("<ReportFilters /> - Component", () => {
})
})
]
}
})
]),
indexes: [],
setIndexes: filters => {
Expand All @@ -260,7 +261,7 @@ describe("<ReportFilters /> - Component", () => {
formattedMinimumReportableFields
};

mountedComponent(<ReportFilters {...componentProps} />, initialState);
mountedComponent(<ReportFilters {...componentProps} />);

expect(appliedFilters.map(filter => filter.data.attribute)).toStrictEqual([
"status",
Expand Down

0 comments on commit 1051b91

Please sign in to comment.