Skip to content

Commit

Permalink
Fix typing in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Oct 7, 2023
1 parent 55125a3 commit 41fa458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mountable/src/options.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ describe("canonicalizeMountOptions()", () => {

const onError = jest.fn();
const options = canonicalizeMountOptions({ onError });
options.onError(error);
options.onError!(error);
expect(onError).toHaveBeenCalledWith(error);
expect(toastCallbacks.onError).toHaveBeenCalledWith(error);
});
Expand All @@ -210,7 +210,7 @@ describe("canonicalizeMountOptions()", () => {

const onError = jest.fn(() => false);
const options = canonicalizeMountOptions({ onError });
options.onError(error);
options.onError!(error);
expect(onError).toHaveBeenCalledWith(error);
expect(toastCallbacks.onError).not.toHaveBeenCalled();
});
Expand Down

0 comments on commit 41fa458

Please sign in to comment.