diff --git a/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.test.tsx b/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.test.tsx index 6d2b8aea792da..5700eed004a35 100644 --- a/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.test.tsx +++ b/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.test.tsx @@ -23,6 +23,7 @@ import { import { DateRangePickerDay } from '@mui/x-date-pickers-pro/DateRangePickerDay'; import { describeConformance } from 'test/utils/describeConformance'; import { DateRangePosition } from './DateRangeCalendar.types'; +import { equal } from 'assert'; const TIMEZONE_TO_TEST = ['UTC', 'system', 'America/New_York']; @@ -600,7 +601,7 @@ describe('', () => { expect(rerenderedButtons.length).equals(initialButtons.length); // Compare timestamps - expect(rerenderedTimestamps).equals(initialTimestamps); + expect(rerenderedTimestamps).to.deep.equal(initialTimestamps); }); it('should select the range from the next month', () => { diff --git a/packages/x-date-pickers/src/DateCalendar/tests/timezone.DateCalendar.test.tsx b/packages/x-date-pickers/src/DateCalendar/tests/timezone.DateCalendar.test.tsx index 522850e2af670..5e61fa69ab12d 100644 --- a/packages/x-date-pickers/src/DateCalendar/tests/timezone.DateCalendar.test.tsx +++ b/packages/x-date-pickers/src/DateCalendar/tests/timezone.DateCalendar.test.tsx @@ -92,7 +92,7 @@ describe(' - Timezone', () => { expect(rerenderedButtons.length).equals(initialButtons.length); // Compare timestamps - expect(rerenderedTimestamps).equals(initialTimestamps); + expect(rerenderedTimestamps).to.deep.equal(initialTimestamps); }); it('on timezone change the difference between the selected date change should be at max 1', () => {