Skip to content

Commit

Permalink
R2-3142: Fixing broken unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoliver-quoin committed Dec 11, 2024
1 parent f93704d commit c1a96c0
Showing 1 changed file with 4 additions and 3 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 Down Expand Up @@ -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 c1a96c0

Please sign in to comment.