Skip to content

Commit b30137c

Browse files
committed
Don't rely on vi.mock internals in unit tests
1 parent 80a0368 commit b30137c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Calendar.spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('Calendar', () => {
3333
render(<Calendar inputRef={inputRef} />);
3434

3535
expect(inputRef).toHaveBeenCalled();
36-
expect(inputRef.mock.calls[0][0]).toBeInstanceOf(HTMLElement);
36+
expect(inputRef).toHaveBeenCalledWith(expect.any(HTMLElement));
3737
});
3838

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

0 commit comments

Comments
 (0)