Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/__tests__/api.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import 'dayjs/locale/tr';

describe('API TESTS', () => {
test('should display the passed date', () => {
const selectedDate = new Date();
const selectedDate = new Date(2020, 11, 19);
const month = selectedDate.toLocaleString('en-US', { month: 'long' });

render(<DateTimePicker mode="single" date={selectedDate} />);
expect(screen.getByText(month)).toBeVisible();
expect(screen.getByText('19')).toBeVisible();
expect(screen.getByText('2020')).toBeVisible();
});

// test('minDate should be applied after init', () => {
Expand Down