Skip to content

Commit

Permalink
Change onChange not called test
Browse files Browse the repository at this point in the history
  • Loading branch information
todor-a committed Jul 14, 2020
1 parent 1e3528a commit b9aa6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/__tests__/DatePickerTestingLib.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ describe('<DatePicker />', () => {
await waitFor(() => screen.getByRole('dialog'));

fireEvent.click(screen.getByLabelText('Jan 1, 2018'));
expect(onChangeMock).toBe(undefined);
expect(onChangeMock).not.toHaveBeenCalled();
});
});

0 comments on commit b9aa6cc

Please sign in to comment.