Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloud11PL committed Jul 25, 2024
1 parent 3129ee2 commit 4f0cd4c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ describe("useQuickOrderSearch", () => {
it("invokes search query", () => {
// Arrange
const { result } = renderHook(() => useQuickOrderSearch());
const [, setQueryDebounced] = result.current;

// Act
act(() => result.current[1]("1234"));
act(() => setQueryDebounced("1234"));

// Assert
expect(useSearchOrdersByNumberQuery).toHaveBeenCalledWith({
Expand Down

0 comments on commit 4f0cd4c

Please sign in to comment.