Skip to content

Commit

Permalink
unit test cases for other date adapter added
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharyar-shamshi committed Feb 29, 2024
1 parent 0314d8a commit c27e5b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe('<AdapterMomentHijri />', () => {
});

describe('Test setMonthYearDate', () => {
const localeObject = { code: 'en' };
const localeObject = { code: 'ar' };
const { render, clock, adapter } = createPickerRenderer({
clock: 'fake',
adapterName: 'moment-hijri',
Expand All @@ -109,7 +109,7 @@ describe('<AdapterMomentHijri />', () => {
});

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({
Expand Down

0 comments on commit c27e5b8

Please sign in to comment.