Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Feb 22, 2024
1 parent 95a5ff4 commit 6d78d80
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,21 @@ describe("ModalDesktopEditorOpenConfirmation", () => {
const setIsLoading = jest.fn();

const mockIConnectionDefaultResolve: Promise<IConnectionDefault> = Promise.resolve({
data: false,
data: true,
statusCode: 200
});
const mockFetchPost = jest
.spyOn(FetchPost, "default")
.mockReset()
.mockImplementation(() => mockIConnectionDefaultResolve)
.mockImplementation(() => mockIConnectionDefaultResolve);

const component = render(
<ModalDesktopEditorOpenSelectionConfirmation
isOpen={true}
handleExit={handleExit}
state={exampleState}
select={[]}
select={["test.jpg"]}
setIsLoading={setIsLoading}
isCollections={false}
/>
Expand All @@ -126,14 +128,15 @@ describe("ModalDesktopEditorOpenConfirmation", () => {
});
const mockFetchPost = jest
.spyOn(FetchPost, "default")
.mockReset()
.mockImplementation(() => mockIConnectionDefaultResolve);

const component = render(
<ModalDesktopEditorOpenSelectionConfirmation
isOpen={true}
handleExit={handleExit}
state={exampleState}
select={[]}
select={["test.jpg"]}
setIsLoading={setIsLoading}
isCollections={false}
/>
Expand Down

0 comments on commit 6d78d80

Please sign in to comment.