diff --git a/src/__tests__/api.test.tsx b/src/__tests__/api.test.tsx index 18a940c..8e52357 100644 --- a/src/__tests__/api.test.tsx +++ b/src/__tests__/api.test.tsx @@ -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, 12, 19); const month = selectedDate.toLocaleString('en-US', { month: 'long' }); render(); expect(screen.getByText(month)).toBeVisible(); + expect(screen.getByText('19')).toBeVisible(); + expect(screen.getByText('2020')).toBeVisible(); }); // test('minDate should be applied after init', () => {