Skip to content

Commit

Permalink
test case improved
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharyar-shamshi committed Mar 3, 2024
1 parent 71aa9bf commit 7217396
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

Expand Down Expand Up @@ -600,7 +601,7 @@ describe('<DateRangeCalendar />', () => {
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', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe('<DateCalendar /> - 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', () => {
Expand Down

0 comments on commit 7217396

Please sign in to comment.