Skip to content

Commit

Permalink
refactor: better use of factories in usePanelState tests
Browse files Browse the repository at this point in the history
Co-authored-by: Kayla Firestack <[email protected]>
  • Loading branch information
lemald and firestack authored Nov 30, 2023
1 parent 98bdf27 commit 5e975d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/tests/hooks/usePanelState.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ describe("usePanelStateForViewState", () => {
})

const { isViewOpen } = usePanelStateForViewState(
viewFactory.build({ state: { [path]: pageViewState } }),
viewFactory.currentState(pageViewState).build(),
jest.fn()
)

Expand Down

0 comments on commit 5e975d1

Please sign in to comment.