Skip to content

Commit

Permalink
Use toHaveBeenLastCalledWith
Browse files Browse the repository at this point in the history
  • Loading branch information
mbraak committed Jan 30, 2025
1 parent 69312d8 commit 435365e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/jqTree/events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ describe("tree.loading_data", () => {
});

await waitFor(() => {
expect(onLoading).toHaveBeenCalledWith(
expect(onLoading).toHaveBeenLastCalledWith(
expect.objectContaining({
isLoading: false,
node: null,
Expand Down

0 comments on commit 435365e

Please sign in to comment.