From 05f93607a143dba183bc8ea27eacff835fae348e Mon Sep 17 00:00:00 2001 From: Dion Date: Thu, 14 Dec 2023 21:17:24 +0100 Subject: [PATCH] differnt type --- .../starsky/clientapp/src/hooks/use-filelist.spec.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/starsky/starsky/clientapp/src/hooks/use-filelist.spec.tsx b/starsky/starsky/clientapp/src/hooks/use-filelist.spec.tsx index 047beed041..fad3abc17d 100644 --- a/starsky/starsky/clientapp/src/hooks/use-filelist.spec.tsx +++ b/starsky/starsky/clientapp/src/hooks/use-filelist.spec.tsx @@ -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(() => {