Skip to content

Commit

Permalink
[IOCOM-1823,IOCOM-1826] FIMS history get saga and header component te…
Browse files Browse the repository at this point in the history
…sts (#6593)

## Short description
addition of said unit tests

## List of changes proposed in this pull request
- addition of  tests for `handleGetFimsHistorySaga`
- addition of tests for `FimsHIstoryHeaderComponent`, with its own
snapshot

## How to test
all tests should pass
  • Loading branch information
forrest57 authored Jan 13, 2025
1 parent 272db91 commit 3a92958
Show file tree
Hide file tree
Showing 4 changed files with 617 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { createStore } from "redux";
import { applicationChangeState } from "../../../../../store/actions/application";
import { appReducer } from "../../../../../store/reducers";
import { GlobalState } from "../../../../../store/reducers/types";
import { renderScreenWithNavigationStoreContext } from "../../../../../utils/testWrapper";
import { FimsHistoryHeaderComponent } from "../FimsHistoryHeaderComponent";
import { FIMS_ROUTES } from "../../../common/navigation";

describe("FimsHistoryHeaderComponent", () => {
it("should match snapshot", () => {
expect(renderComponent().toJSON()).toMatchSnapshot();
});
});

const renderComponent = () =>
renderScreenWithNavigationStoreContext<GlobalState>(
FimsHistoryHeaderComponent,
FIMS_ROUTES.HISTORY,
{},
createStore(appReducer, applicationChangeState("active") as any)
);
Loading

0 comments on commit 3a92958

Please sign in to comment.