Skip to content

Commit

Permalink
chore:fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshmcg committed Sep 12, 2024
1 parent d2b6966 commit 3402dc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
3 changes: 2 additions & 1 deletion bciers/apps/reporting/src/app/utils/getReportingOperation.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { actionHandler } from "@bciers/actions";

export async function getReportingOperation(version_id: number) {
return actionHandler(
let response = actionHandler(
`reporting/report-version/${version_id}/report-operation`,
"GET",
`reporting/report-version/${version_id}/report-operation`,
);
if (response.ok) return response;
}
22 changes: 0 additions & 22 deletions bciers/libs/components/src/form/MultiStepFormWithTaskList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,6 @@ describe("MultiStepFormWithTaskList", () => {
).toBeVisible();
});

it("renders task list elements correctly", async () => {
render(
<MultiStepFormWithTaskList
initialStep={0}
steps={["Step 1", "Step 2", "Step 3"]}
taskListElements={taskListElements}
schema={schema}
uiSchema={uiSchema}
formData={formData}
onSubmit={mockOnSubmit}
/>,
);

// Verify section title is rendered
expect(screen.getByText("Operation information")).toBeVisible();

// Verify page titles are rendered
expect(screen.getByText("Review Operation information")).toBeVisible();
expect(screen.getByText("Person responsible")).toBeVisible();
expect(screen.getByText("Review facilities")).toBeVisible();
});

it("handles form submission", async () => {
render(
<MultiStepFormWithTaskList
Expand Down

0 comments on commit 3402dc7

Please sign in to comment.