Skip to content

Commit

Permalink
[pickers] Remove unneeded onChange event in YearCalendar keyboard tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmoon committed Sep 22, 2024
1 parent eee135e commit 9317740
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react';
import { spy } from 'sinon';
import { expect } from 'chai';
import { fireEvent, screen } from '@mui/internal-test-utils';
import { YearCalendar } from '@mui/x-date-pickers/YearCalendar';
Expand All @@ -20,13 +19,11 @@ describe('<YearCalendar /> - Keyboard', () => {
yearsOrder: 'asc' | 'desc' = 'asc',
direction: 'ltr' | 'rtl' = 'ltr',
) {
const onChange = spy();
const yearCalendar = (
<YearCalendar
value={adapterToUse.date('2000-01-01')}
minDate={adapterToUse.date('1999-01-01')}
maxDate={adapterToUse.date('2001-01-01')}
onChange={onChange}
yearsOrder={yearsOrder}
/>
);
Expand Down

0 comments on commit 9317740

Please sign in to comment.