Skip to content

Commit

Permalink
differnt type
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Dec 14, 2023
1 parent ed3a3ba commit 05f9360
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions starsky/starsky/clientapp/src/hooks/use-filelist.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,15 @@ describe("UseFileList", () => {
expect(pageHelper).toBeFalsy();
});

it("setPageTypeHelper - pageType DifferentType false", () => {
const { hook } = mounter("/test.jpg");

const pageHelper = hook.setPageTypeHelper({
pageType: "DifferentType"
});
expect(pageHelper).toBeFalsy();
});

it("setPageTypeHelper - pageType Archive", () => {
const useStateMock = jest.fn();
jest.spyOn(React, "useState").mockImplementationOnce(() => {
Expand Down

0 comments on commit 05f9360

Please sign in to comment.