From c27e5b8e5c939f41f4b223dfdab94ce443935cf7 Mon Sep 17 00:00:00 2001 From: Shaharyar Shamshi Date: Fri, 1 Mar 2024 00:34:32 +0530 Subject: [PATCH] unit test cases for other date adapter added --- .../src/AdapterMomentHijri/AdapterMomentHijri.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/x-date-pickers/src/AdapterMomentHijri/AdapterMomentHijri.test.tsx b/packages/x-date-pickers/src/AdapterMomentHijri/AdapterMomentHijri.test.tsx index 5ea97590f452a..4dfa00f560892 100644 --- a/packages/x-date-pickers/src/AdapterMomentHijri/AdapterMomentHijri.test.tsx +++ b/packages/x-date-pickers/src/AdapterMomentHijri/AdapterMomentHijri.test.tsx @@ -95,7 +95,7 @@ describe('', () => { }); describe('Test setMonthYearDate', () => { - const localeObject = { code: 'en' }; + const localeObject = { code: 'ar' }; const { render, clock, adapter } = createPickerRenderer({ clock: 'fake', adapterName: 'moment-hijri', @@ -109,7 +109,7 @@ describe('', () => { }); it('should set month, year, and date correctly', () => { - const initialDate = adapter.date('2022-01-15T09:35:00'); + const initialDate = adapter.date('2020-01-01T23:44:00.000Z')!; const newDate = adapter.setMonthYearDate(initialDate, 2018, 4, 15); const v7Response = renderWithProps({