Skip to content

Commit

Permalink
Don't rely on vi.mock internals in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Mar 24, 2023
1 parent e38c96b commit f69fc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Calendar.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Calendar', () => {
render(<Calendar inputRef={inputRef} />);

expect(inputRef).toHaveBeenCalled();
expect(inputRef.mock.calls[0][0]).toBeInstanceOf(HTMLElement);
expect(inputRef).toHaveBeenCalledWith(expect.any(HTMLElement));
});

it('renders Navigation by default', () => {
Expand Down

0 comments on commit f69fc43

Please sign in to comment.